[Zope] Embedding absolute_url in TAL Syntax

Chris Withers chrisw@nipltd.com
Mon, 10 Jun 2002 15:10:50 +0100


Max M wrote:
> 
> Chris Withers wrote:
> 
> >
> >You want:
> >
> ><td><a href="dummy" tal:attributes="href item/absolute_url"
> >                    tal:content="item/title">Dummy Title</a></td>
> >
> 
> I can't help to wonder why there isn't a common "function" for an idiom
> as comon as this ... neither in dtml nor Zpt.
> 
> It's a rather longwinded way of writing something that should be as
> simple as "obj.abs_url_2_html()"

write a python script ;-)

<td><a tal:replace="here/abs_url_2_html">Dummy Title</a></td>

cheers,

Chris