[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Zope Page Templates
webmaster@zope.org
webmaster@zope.org
Sun, 22 Sep 2002 06:44:36 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx#2-49
---------------
The 'tal:attributes' statement replaces the 'src' attribute of the
'img' tag with the value of 'item/icon'. The
'src="/misc_/OFSP/Folder_icon.gif"' attribute in the template acts
as a placeholder.
% Anonymous User - July 4, 2002 1:05 pm:
But it also works if you omit the placeholder, at least on my Zope 2.5.1:
<td><img tal:attributes="src foo/icon">
<span tal:replace="foo/meta_type">Meta-Type</span></td>
So is the 'src=...' placeholder redundant? The above is rather unclear.
% Anonymous User - July 11, 2002 4:00 pm:
It works, but if click "Browse HTML source" you get an unloaded image...
% Anonymous User - Sep. 22, 2002 6:34 am:
/replaces the src attribute/replaces the value of the src attribute/
% Anonymous User - Sep. 22, 2002 6:44 am:
shouldnt this be "src foo/icon.absolute_url" ? the path of, not the image.