[Zope] Problem using sequence grouping
Doyon, Jean-Francois
Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Thu, 7 Feb 2002 16:27:09 -0500
Hello,
I'm trying to build an alphabetical list of items, grouped by letter. =
I've
come up with the following:
<dtml-var standard_html_header>
<table>
<dtml-in "portal_catalog( meta_type=3D'Archive Map',
path=3D'/english/archives/5thedition', review_state=3D'published')" =
sort=3DTitle
skip_unauthorized>
<dtml-if first-sequence-Letter>
<tr><td colspan=3D2><dtml-var sequence-Letter></td></tr>
</dtml-if>
<tr><td class=3D"cell_contents">&dtml-Title;</td><td><a =
href=3D"<dtml-var
"getURL()">" class=3D"link">View</a></td></tr>
</dtml-in>
</table>
<dtml-var standard_html_footer>
This works fine except that the "first-sequence-Letter" never seem to =
become
true ...
>From what I read in the docs:
first-variable=20
True if the current item is the first with a particular value for a
variable.=20
What I did above should work, shouldn't it ? What am I doing wrong ?
Thank you,
Jean-Fran=E7ois Doyon
Internet Service Development and Systems Support
GeoAccess Division
Canadian Center for Remote Sensing
Natural Resources Canada
http://atlas.gc.ca
Phone: (613) 992-4902
Fax: (613) 947-2410