[Zope] infobar and urls

Paul Erickson erickson@kaivo.com
Sat, 09 Mar 2002 13:00:21 -0700


Joel Burton wrote:

>On Sat, 9 Mar 2002, Jens Grewen wrote:
>
>>Hi,
>>
>>use
>>Link is <a href="/AFolder/">link here</a>
>>
>>instead of
>>
>>Link is <a href="AFolder/">link here</a>
>>
>>
>>Jens
>>
>
>Assuming your item is in the root folder, of course. ;-)
>
>You can also use  <a href="<dtml-var "AFolder.absolute_url()"
>url_quote>">link here</a>, which will find the correct URL for
>AFolder and put it in. The nice thing about this is that you can move
>AFolder around in the hierarchy, but as long as the current method can
>find it through acquisition, it will work.
>
Or yet another variation:

<a href="&dtml.url-AFolder;">link here</a>

Does what Joel's does, except that it is shorter, possibly more easy to 
read.