[CPS-users] How to sort items in sections, portlets, etc.?

Jean-Marc Orliaguet jmo at ita.chalmers.se
Mon Apr 10 19:23:21 CEST 2006


curios-one wrote:

> Hi,
> can somebody help me understanding how to sort items in sections, 
> portlets, etc.
>
> I noticed that some portlets have dropdown boxes to set the sort 
> order, but I can't understand how to sort items in the navigation 
> portlet called folder contents in the content_well slot.
>
> Is it also possible to have different sorting on different sections? 
> for example one section where items are sorted by titles and another 
> one where are sorted by the last publishing date.
>
> Thanks in advance.
> C.


we have implemented something like this on our site, but it requires 
that you add a 'sort items' field on sections. Then the folder contents 
portlet almost already supports the sorting of items (see 
getFolderItems.py) , so you'll have to customize the page template 
associated with it (i.e. create a custom portlet) to make it read the 
information from the current section.

I can send you the code if you want.

/JM


More information about the cps-users mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.