[Zope] Re: Attributes

Evan Simpson evan@4-am.com
Wed, 18 Jun 2003 14:38:13 -0500


Simon Forster wrote:
> <img src="../images/ldmlMenu_01.png" width="170" height="2" border="0" 
> tal:attributes="src here/images/ldmlMenu_01.png">
> 
> should, if my understanding is correct, replace the src attribute for 
> the image with the path defined by the tal:attributes statement.

Calling an Image gives you a complete <img> tag for that image.  To do 
what you want, use either of these:

<img src="../images/ldmlMenu_01.png" width="170" height="2" border="0"
  tal:attributes="src here/images/ldmlMenu_01.png/absolute_url">

<img src="../images/ldmlMenu_01.png" width="170" height="2" border="0"
  tal:replace="structure here/images/ldmlMenu_01.png">

Cheers,

Evan @ 4-am