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

Chris McDonough chrism@zope.com
04 Nov 2002 13:23:05 -0500


Skip, 

A new version of the Zope Book that has a chapter on acquisition is
available at
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition.  I hope to
make this the "current" edition soon, although I'm battling a lack of
"tuits" to do the necessary work.

- C


On Mon, 2002-11-04 at 12:59, Skip Montanaro wrote:
> 
>     >> <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/
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )