[Zope] Sort by property, then match all docs w/property

cgreen cgreen@ttsg.com
Thu, 10 Jan 2002 13:30:08 -0500


Keith;

Thanx for your swift and helpful response. This is *just* what the 
doctor ordered!!!

peace

> Here's a solution similar to what you'd need (taken from
> http://sportsters.thuban.org/Trips).. note the first-<var>/last-<var>:
> I had to dig to find out that these existed.  You don't even need a temp
> variable to handle it.
> 
> <dtml-in expr="PARENTS[0].objectValues('Folder')"
> sort="cat,title_or_id">
> 
> <dtml-if first-cat>
> <h3><dtml-var cat></h3>
> 
> <dl>
> </dtml-if>
> 
> <dt><a href="<dtml-var absolute_url>"><dtml-var title_or_id></a></dt>
> <dtml-if info><dd><dtml-var info></dd></dtml-if>
> 
> <dtml-if last-cat>
> </dl>
> 
> </dtml-if>
> 
> </dtml-in>
> 
> 
> ---------- 
> Keith J. Farmer 
> kfarmer@thuban.org 
> http://www.thuban.org 
> -----Original Message-----
> From: cgreen [mailto:cgreen@ttsg.com]
> Sent: Wednesday, January 09, 2002 14:39
>                               
> What I'd like to do next is grab each property in a variable to compare
> against the value 
> of the *next* iteration. If it matches, don't print the topic name in
> the table header. If it doesn't match, print the topic name and set the
> temp variable to the new value. 
> 
> 
>