[Zope] creating link to parent container.

Nicolas Évrard nicoe@altern.org
Wed, 21 May 2003 10:08:17 +0200


* John Kipling Lewis  [05:46 21/05/03 CEST]: 

Hello,

>I'm having trouble finding a way to make a link to a parent container.
>
>Something like this?
>
><a href="#" tal:attribute="href python:container.getURL">Link</a>
>

<a href="#" tal:attributes="href container/absolute_url">Link</a>

is a link to the container of the page template. If this page template
is acquired as in :

http://.../site/animals/dog/waf/showPhoto with showPhoto a pt residing
in animals, this link will point to http://.../site/animals.

If you want to point to http://.../waf you should use
'here/absolute_url'.

HTH

-- 
(°>  Nicolas Évrard
/ )  Liège - Belgique
^^