[Zope] Calling a Variable

Chris Withers chris at simplistix.co.uk
Fri Mar 9 04:48:00 EST 2007


tonylabarbara at aol.com wrote:
> Hi;
> I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this:
>  
> <html tal:define="global base_url here/baseURL;
> template_id string:index;
> here python:here.restrictedTraverse('s/c/x/root/en-us/Help')">

redefining 'here' isn't a good idea...

> <a href="?base_url/contactus.pt">

I think you meant:

<a href="#"
    tal:attributes="href string:${base_url}/contactus.pt">

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list