[Zope] Page Template: how to reference objects in the folder above this one?

Skip Montanaro skip@pobox.com
Mon, 4 Nov 2002 11:59:30 -0600


    >> <span tal:replace="/dcII/standard_html_header">header</span>
    >> <span tal:replace="here/../standard_html_header">header</span>

    Clemens> ... and the third combination in this row would be
 
    Clemens>   <span tal:replace="here/dcII/standard_html_header">header</span>

Thank you.  Actually, as it turns out

    <span tal:replace="here/standard_html_header">header</span>

is sufficient (once you add "structure " to the replace expression).

    Clemens> If You do not understand why this works You may want to revisit
    Clemens> the "Acquisition" chapter in the Zope book.

Maybe so, but what information I see about acquisition appears to be buried
in a chapter entitled "Dynamic Content with DTML", not the first place I
would think to look, especially because I'm trying to avoid DTML.  Not
surprisingly, examples in that chapter such as

    <dtml-var standard_html_header>

won't help a new user much with the syntax necessary how to get the same
result using page templates.  What examples the page template chapters
contain don't seem to deal with acquisition at all.

-- 
Skip Montanaro - skip@pobox.com
http://www.mojam.com/
http://www.musi-cal.com/