[Zope] Reverse Order Display

Darin Lee LEEDM@state.mi.us
Mon, 23 Apr 2001 15:06:38 -0400


Tane,

Try this:

<dtml-with news>

<dtml-in "objectValues(['Legion News Generator'])" sort=3Dbobobase_modifica=
tion_time reverse>
<dtml-var content_html>
</dtml-in>
</table>

</dtml-with>

"bobobase_modification_time" and "reverse" are pre-defined attributes you =
can pass to the dtml-in method. More at:
http://www.zope.org/Members/michel/ZB/AppendixA.dtml=20

Good luck,
-Darin

Tane Wrote:
>
>Hi there,
>
>Long time listner, first time caller.
>
>I have bastardised the Job Board system as a simple news posting system, =
but
>I am having a problem.  I want to display the posts in reverse order of =
the
>timestamps (so the lastest post appears at the top).
>
>The current code I have is :
>
><dtml-with news>
>
><dtml-in "objectValues(['Legion News Generator'])">
><dtml-var content_html>
></dtml-in>
></table>
>
></dtml-with>
>
>How can I make it reverse the object values so I can get it to display =
how I
>want it?
>
>Tane Piper
>Lead Designer - ZZICT Entertainment
>http://www.zzict.nl