[Zope] infobar and urls

Joel Burton joel@joelburton.com
Sat, 9 Mar 2002 11:12:14 -0500 (EST)


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.

-- 

Joel BURTON  |  joel@joelburton.com  |  joelburton.com  |  aim: wjoelburton
Independent Knowledge Management Consultant