collective.sortmyfolder

Reveal some not-so-hidden Plone feature for sorting your folders

Project Description

Note

Alternative product

This product is mainly deprecated. Think about switching to wildcard.foldercontents, that is part on Plone 5.

Introduction

There's a piece of software that make possible sorting items in Plone, and it contains hidden additional features. Normally, when you call a sort action in Plone, you call a URL like this:

http://myhost/myfolder/folder_position?position=up&id=content_id

... of course, KSS/jQuery stuff in recent Plone versions will hide this feature, but is still available when you disable Javascript.

The Plone UI has no way at the moment for performing actions like this:

http://myhost/myfolder/folder_position?position=ordered&id=fieldname

But this feature is inside Plone: in this way you will sort a folder automatically, using a field value for comparison (like title, or created).

What this product does

This product adds to Plone some of the features that follow.

Can now sort a folder in reverse order

You can call an URL like this:

http://myhost/myfolder/folder_position?position=ordered&id=created&reverse=1

and this will sort the folder using reverse criteria.

Add "delta" criteria to the sorting mechanism

You can call:

http://myhost/myfolder/folder_position?position=up&id=content_id&delta=4

and this will move the content down by 4 slots instead of the default 1 (this feature is not so useful if you use Plone KSS/jQuery/Javascript sorting).

Add a nice Plone interface for global folder sorting

Your "Action" menu will be populated with a new entry: "Sort folder". This will present the user a Plone form where he can perform common sorting operations.

Sort my folder form

The last option makes it possible for users to specify a custom attribute that's not in the list. It is hidden by default and is shown by Javascript as it needs some Javascript to work anyway. If you don't like this option, just add a CSS rules which hides the choice_custom_field element.

What this product isn't

This product only reveals features that are already in Plone (inside the orderObjects method). It will not add new sorting behaviour.

Dependencies

Testing for collective.sortmyfolder has been done on:

  • Plone 3.3
  • Plone 4.2
  • Plone 4.3

Note that on Plone 4, reverse sorting on the position does not work. Work is under way to fix this. It needs changes in both collective.sortmyfolder and the core plone.folder package.

Credits

Developed with the support of S. Anna Hospital, Ferrara

S. Anna Hospital - logo

S. Anna Hospital supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Self-Certification

[X] Internationalized

[ ] Unit tests

[X] End-user documentation

[ ] Internal documentation (documentation, interfaces, etc.)

[X] Existed and maintained for at least 6 months

[ ] Installs and uninstalls cleanly

[X] Code structure follows best practice

Current Release
collective.sortmyfolder 1.0.7

Released Apr 08, 2014 — tested with Plone 4.1, Plone 4.2, Plone 4.3

Download file Get collective.sortmyfolder for all platforms
collective.sortmyfolder-1.0.7.zip
If you are using Plone 3.2 or higher, you probably want to install this product with buildout. See our tutorial on installing add-on products with buildout for more information.

All Releases

Version Released Description Compatibility Licenses Status
1.0.7 Apr 08, 2014 More about this release…
Plone 4.1
Plone 4.2
Plone 4.3
GPL final
1.0.6 Sep 05, 2013 More about this release…
Plone 4.1
Plone 4.2
Plone 4.3
GPL final
1.0.5 Nov 13, 2012 fixed manifest More about this release…
Plone 4.2
Plone 4.1
Plone 4
Plone 3
GPL final
1.0.4 Nov 13, 2012 fixed uninstall step More about this release…
Plone 4.2
Plone 4.1
Plone 4
Plone 3
GPL final
1.0.3 Oct 14, 2012 Moved to github. More about this release…
Plone 4.2
Plone 4.1
Plone 4
Plone 3
GPL final
1.0.2 Nov 14, 2011 Migration to Plone 4.1 More about this release…
Plone 4.1
Plone 4
Plone 3
GPL final
1.0.1 Apr 20, 2011 Updated dutch translation More about this release…
Plone 4
Plone 3
GPL final
1.0.0 Apr 06, 2011 Final release More about this release…
Plone 4
Plone 3
GPL final
0.2.0 Jan 07, 2011 Translation release More about this release…
Plone 3
GPL final
0.1.0 First releease More about this release…
Plone 3
GPL beta