[Zope] Re: TAL: getting container of template

Evan Simpson evan@4-am.com
Mon, 02 Sep 2002 16:48:33 -0500


Jochen Haeberle wrote:
> although the TAELS Overview in the Zope help states that the built in 
> name container  refers to "The folder in which the template is located", 
> obviously the container of the object the tamplate is applied to is 
> returned.

"Obviously"?  (scribbles some quick test code...) Nope, it's the 
template container, as documented.


> I tried to get to URLPATHn or other veriables off the request object as 
> described in the docu thrugh the tal-name "request" but to no avail is 
> this something different or do I need to use some sort of accessor on 
> these???

It should work fine like this:

<span tal:replace="request/URLPATH1">The path</span>

Cheers,

Evan @ 4-am