[Zope] DTML Question
Sven Rudolph
sven@spaghetticode.de
Mon, 1 Apr 2002 16:50:30 +0200
Hello Matt.
> I cannot find a help reference for this action and <dtml-var /mysite/images>
Try this:
<dtml-var "mysite.images.mypic.tag()">
this creates a complete <img>-tag with width,height and alt.
If your picture is called mypic.gif, which means it has an extension named "gif", separated by a dot, this will not work.
<dtml-var "mysite.images.mypic.gif.tag()">
Zope will tell you that mypic has no attribute named "gif".
But this will work:
<dtml-var "mysite.images['mypic.gif']">
or even
<dtml-var "mysite.images['mypic.gif'].tag()">
The results are the same.
Greetings
Sven Rudolph