[Zope] DTML Question
Schmidt, Allen J.
aschmidt@nv.cc.va.us
Mon, 1 Apr 2002 10:02:15 -0500
Learned something new today. Guess I can go home!
-----Original Message-----
From: Sven Rudolph [mailto:sven@spaghetticode.de]
Sent: Monday, April 01, 2002 9:51 AM
To: zope@zope.org
Subject: Re: [Zope] DTML Question
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
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )