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

Clemens Robbenhaar robbenhaar@espresto.com
Mon, 4 Nov 2002 18:07:43 +0100


Hi Skip,
 > 
 > If I have the following objects
 > 
 >     /dcII
 >     /dcII/add_contact
 >     /dcII/add_contact/index_html
 >     /dcII/standard_footer
 >     /dcII/standard_header
 > 
 > and .../index_html is a page template, how to I reference
 > /dcII/standard_{header,footer}?  I tried both of the following:
 > 
 >     <span tal:replace="/dcII/standard_html_header">header</span>
 >     <span tal:replace="here/../standard_html_header">header</span>

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

which should work from anywhere. If You are inside of the "dcII", You
can use the simpler tal:replace="here/standard_html_header".


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

cheers,
clemens