[Zope] Re: TAL: getting container of template
Jochen Haeberle
listen@midras.de
Tue, 3 Sep 2002 08:01:28 +0200
>Jochen Haeberle wrote:
>>I would not like to argue with you on this ;-) But how do you test
>>for this???
>
>I put a test ZPT into a 'scratch' Folder with <span
>tal:replace="container/id">ID</span> and visited it using several
>URLs leading through various paths and pieces of content. It always
>says "scratch".
>
>><span tal:replace="container/absolute_url">test</span> gives the
>>url to the object the template is applied to...
>
>Are there ZClasses, Products, or other complications involved here,
>or are we just talking about objects in Folders?
no, just folders and (rbickers Photo) objects. My template lives in
the root folder of my site and there are Photo Folders spanning one
to three levels deep. By using container/absolute_url I hoped to
always get the url of my root-folder to build a navigation,
independent of using vh or not.
Jochen