[Zope] TAL: getting container of template

Jochen Haeberle listen@midras.de
Wed, 4 Sep 2002 09:48:32 +0200


Hi Mike,

thanks for your note and the excelent HowTo. Although the overall 
scenario does not fit me, it was very interesting. the solution to my 
problem was your script getSiteRoot. Using this, I am now able to 
build my navigational-links based on my logical root :-)

I did have some problems though, that I do not yet understand... when 
I use <a href = "#" tal:attributes="href 
string:${here/getSiteRoot/absolute_url}/Photos/"> it will put 
"/getSiteRoot/Photo" in the URL. If I put a tal:define="vhroot 
here/getSiteRoot" in front and query vhroot for absolute_url it 
works. Why is that???

Thanks anyway
Jochen

At 9:17 Uhr -0500 03.09.2002, Mike Renfro wrote:
>On Mon, Sep 02, 2002 at 10:16:49PM +0200, Jochen Haeberle wrote:
>
>The setup I've documented at http://www.zope.org/Members/mwr/ somewhat
>fits your description -- I've just verified that it does work if I use
>the normal virtual host namespace, or the literal
>hostname:portnumber/folder/ namespace.
>--
>Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
>931 372-3601 / Tennessee Technological University -- renfro@tntech.edu