[Zope] Macro in dtml
Stephan Richter
srichter@cbu.edu
Thu, 27 Apr 2000 01:14:51 -0500
>I got a list of folders : events, activities, news, etc
>
>Which I need to list the items in each of these in sequence, I would like to
>do :
>
><dtml-in "['events', 'activities', 'news']">
> <dtml-with "sequence-item">
> <dtml-var list-items missing>
> </dtml-with>
></dtml-in>
The method you are looking for is objectValues(). Look into ZQR for the
specifics.
Here the code you want (Yes, I actually tested it):
<dtml-var standard_html_header>
<dtml-in "['events', 'activities', 'news']">
<dtml-let x=sequence-item>
<dtml-in "_[x].objectValues()">
<dtml-var id>
</dtml-in>
</dtml-let>
</dtml-in>
<dtml-var standard_html_footer>
Regards,
Stephan
--
Stephan Richter - (901) 573-3308 - srichter@cbu.edu
CBU - Physics & Chemistry; Framework Web - Web Design & Development
PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391