R: [Zope] infobar and urls
Joel Burton
joel@joelburton.com
Sun, 10 Mar 2002 11:33:54 -0500 (EST)
On Sun, 10 Mar 2002, Alex Cordero wrote:
>
> > You can also use <a href="<dtml-var "AFolder.absolute_url()"
> > url_quote>">link here</a>, which will find the correct URL for
>
> Uhm... just rember to use this syntax:
>
> <a href="<dtml-var 'AFolder.absolute_url()' url_quote>">link here</a>
>
> since if you use double quotes in the internal part the parser can't
> distinguish when the 'href' part of the tag starts and ends.
? Maybe _your_ Zope parser can't, but _mine_ can (2.5.0, and have done
this as far back as 2.3.x). Perhaps the single-qoute-outside,
double-quote-inside is more readable, but the both-double doesn't cause
any problems that I can see.
In any event, as has been pointed out, <a href="&dtml.url-AFolder">
is probably the easiest option. But, as always, TMTOWTDI. :-)
--
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant