[Zope] How can folder address its contents?

Stephen Pitts smpitts@midsouth.rr.com
Sun, 12 Dec 1999 14:51:13 -0600


On Sun, Dec 12, 1999 at 02:06:38PM -0500, Robert W. Erb wrote:
> I want to iterate over the contents of a folder.  I can't do it by
> name, since items will be added and taken out of the folder at run
> time, so I don't know what they'll be called.
> 
> I think I'll figure out the iteration ok, but how do I get at the
> objects contained in a folder, other than by name?
> 

Something like this should work.
<dtml-in objectItems>
<dtml-var "_['sequence-item'].title">
</dtml-in>

Beware of the sequence-item snafu; to use it in expressions, you must
refer to it as _['sequence-item']! Anyone know why this is?
-- 
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org