[Zope] Gettin all images of a folder

Rik Hoekstra hoekstra@fsw.leidenuniv.nl
Thu, 30 Sep 1999 13:15:00 +0100


Olivier Deckmyn wrote:
> 
> Ok it works...
> 
> But WHY do I have to <dtml-with Images> ???
> 
> As really don't understand :(

Because you want the images from the folder (object to Zope) Images, not
from the current namespace (=folder or DTML object and all that is
acquired from the acquisition hierarchy). 
What the with tag really says is take the namespace of the (folder)
object Images and make a list (the in tag) of all objectValues of a type
'Image' then do something with them (what the dtml-in tag embraces)

For a more advanced treatment of the with tag see

http://www.zope.org:18200/Members/michel/HowTos/WithTagHow-To

Rik