[Zope] <img> tags, dtml-vars and css

Morten W. Petersen morten@esol.no
09 Nov 2000 22:49:47 +0100


[Troy Farrell]

| I must be ignoramus, but I can't figure out modify <img> tags as generated
| by a image object.  I have this:
| I use <dtml-var expr="img.logo_image"> to add an image object to a dtml
| document.
| How can I add a STYLE="color:silver;" or any other tag the HTML source?

Call it like so:

<dtml-var "img.logo_image.tag(style='color:silver;')">

(See somewhere around line 560 of lib/python/OFS/Image.py for more info..

HTH.

-Morten