[Setup] Re: Ordering on dateEmitted

Alexander Limi limi at plone.org
Sat Feb 11 01:58:48 UTC 2006


On Fri, 10 Feb 2006 07:15:29 -0800, Rui Gamito  
<atrium601 at gmail.com> wrote:

> I've been trying to order a list of newsletter objects (plone gazette) by
> their dateEmitted param, but I can't seem to access that value on the
> sort_on option.
>
> Here's my current tal:define, with the sort_on set to Date:
>
>  tal:define="newsletters
> python:container.portal_catalog(portal_type='Newsletter',
> sort_on='Date', sort_order='normal',review_state='published');
>                  newsletters_ord python:sequence.sort(newsletters,
> (('dateEmitted', 'cmp', 'asc'),));"

Please contact the PloneGazette developers, this is a Plone setup list. :)

-- 
_____________________________________________________________________

      Alexander Limi · Chief Architect · Plone Solutions · Norway

  Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________

       Plone Co-Founder · http://plone.org · Connecting Content
   Plone Foundation · http://plone.org/foundation · Protecting Plone




More information about the Setup mailing list