No, it doesn't work either...
From: Gitte Wange <gitte@mmmanager.org> To: benoit.dominiak@makinacorpus.com CC: zope@zope.org Subject: Re: [Zope] Choice of the sorting key of a dtml-in tag Date: Fri, 13 Jul 2001 15:14:42 +0200
On Friday 13 July 2001 15:03, you wrote:
Hi again,
I'd like to make a page with a list of my Zclass instances and to be able to sort them by different key. I tryed with this code :
<dtml-if "REQUEST.has_key('skey')"> <dtml-else> <dtml-call "REQUEST.set('skey', 'bobobase_modification_time reverse')"> </dtml-if> <dtml-in "objectValues(['article'])" size=3 sort=skey start=query_start>
But it doesn't work : instances are not sorted correctly...
Any idea ?
Benoit Dominiak Web Developper Makina Corpus 21 Darmouth Street London, SW1H 9BP Tel: +44 (0)20 7304 7044 Fax: +44 (0)20 7304 7034
_________________________________________________________________________
Untested: <dtml-in "objectValues(['article'])" size=3 sort='skey' start=query_start>
This have worked for me
Regards,
-- Gitte Wange Jensen
Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org
Quote of the day: In the beginning, there was Fortran.
- James Gray
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.