[Zope] Reverse sort w/ dtml-in
Craig Allen
cba@mediaone.net
Wed, 08 Dec 1999 21:27:54 -0500
Like many Zope features, finding documentation and examples may be rather
hit-or-miss. The fragment below displays the single most recently updated
instance of my "quotation" Zclass in the "quotes" folder:
<dtml-with quotes>
<dtml-in "objectValues(['quotation'])" reverse
sort=bobobase_modification_time size=1 orphan=1>
<p><b><dtml-var "_['sequence-item']"></b></p><center>-<dtml-with
"_['sequence-item']"><dtml-var author></dtml-with></center>
</dtml-in>
</dtml-with>
Hope this helps.
Craig
> Is there a way to script the reverse sorting in DTML, or do I have to do all
> my sorting inside the database query (ZSQL method)?
--
Craig Allen - Managing Editor - Content Management Review - http://cmreview.com