[Zope] please help with dtml-in
Paul Winkler
slinkp23@yahoo.com
Fri, 06 Apr 2001 04:31:35 -0400
Zopista wrote:
>
> Combine the two:
>
> <dtml-with sub>
> <dtml-in "objectValues()">
> <dtml-var title><dtml-var sequence-item>
> </dtml-in>
> </dtml-with>
>
> With gives you access to the sub folder, in iterates over the items.
Or you can skip the dtml-with and call the objectValues() method
of sub directly, like so:
<dtml-in "sub.objectValues()">
<dtml-var title>
<dtml-var sequence-item>
</dtml-in>
The stuff in quotes is a python expression which means, call the
objectValues method of the object "sub". If sub is a folder,
this will loop through the contents of the folder.
--
................... paul winkler ....................
custom calendars & printing: http://www.calendargalaxy.com
A member of ARMS: http://www.reacharms.com
home page: http://www.slinkp.com