[ZPT] problems wtih img tag

Geir Bækholt Geir Bækholt
Fri, 21 Dec 2001 21:51:12 +0100


Hello Luis, 
Friday, December 21, 2001, 21:06:10, you wrote:
LMA> I can’t see the image in the test view of this piece of code:

LMA>                 <img tal:attributes="src here/encabezado"
LMA>                          src="/Pruebas/PT/Diego/encabezado">

LMA> I have proved lots of combinations without success.
LMA> Any suggestions?

I assume "encabezado" is the actual image object you want to display.

<img tal:attributes="src here/encabezado/absolute_url"> will probably
get you what you want.

to achieve the equivalent of <dtml-var encabezado> , you have to do
 <img tal:replace="here/encabezado">

an image object , when called , gives you the entire img-element , not
just the url..

(hot tip : if something doesn't work , check the produced
HTML-source.. )

:-)
 
-- 
Geir Bækholt                       web-developer
geirh@funcom.com             funcom oslo | webdev-team