[Zope] include standard_html_header / aquisition

Stephen Pitts smpitts@midsouth.rr.com
Mon, 29 Nov 1999 06:44:08 -0600


On Mon, Nov 29, 1999 at 11:51:48AM +0100, Ulrich Wisser wrote:
> Hello,
> 
> I try to make a new standard_html_header in a subdirectory.
> That is no big deal if I only wanted to substitute the
> object. But I want to include the general header and
> add some content. e.g.:
> 
> /
>   standard_html_header  (A)
>   standard_html_footer
>   subdir/
>     standard_html_header   (B)
>     dtml_doc
>     dtml_method
>     subsubdir/
> 
> standard_html_header (A) looks like
> 
> <HTML>
>   <HEAD>
>     <TITLE><dtml-var title_or_id></TITLE>
>   </HEAD>
> <BODY>
> 
> standard_html_header (B) looks like
> 
> <dtml_var "PARENTS[1].standard_html_header">
because PARENTS[1] is only valid inside of a DTML Document. You'd need
PARENTS[0] inside of a method, PARENTS[1] inside of a method inside of
subsubdir, PARENTS[2] inside of a document in subsubdir, etc. In all of
the cases, you'd need to get the top-level folder and grab
standard_html_header from there..sooo

What about <dtml-var "PARENTS[-1].standard_html_header">? 

> <H1>This is additional header content</H1>
> 
> This works when used in dtml_doc but not in dtml_method.
> And it doesn't work in any kind of document in subsubdir/.
> 
> How can I achieve this?
> 
> Thanks
> 
> Ulli
> 
> 
> 
>     
> -- 
> ----------------- Die Website Effizienzer ------------------
> luna-park                Bravo Sanchez, Vollmert, Wisser GbR
> Ulrich Wisser                   mailto:u.wisser@luna-park.de
> Alter Schlachthof, Immenburgstr. 20      Tel +49-228-9654055
> D-53121 Bonn                             Fax +49-228-9654057
> ------------------http://www.luna-park.de ------------------
> 
> 
> _______________________________________________
> 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 )
> 

-- 
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org