[Zope] standard_html_header difficulties

Chris McDonough chrism@digicool.com
Fri, 3 Dec 1999 17:45:12 -0500


Instead of using a DTML Method for index_html, use a DTML Document
(which has properties of its own).

Chris McDonough     mailto:chrism@digicool.com
Digital Creations   http://www.digicool.com
Publishers of Zope  http://www.zope.org

> -----Original Message-----
> From: Art Hampton [mailto:arth@pacsg.css.mot.com]
> Sent: Friday, December 03, 1999 5:19 PM
> To: zope@zope.org
> Subject: Re: [Zope] standard_html_header difficulties
> 
> 
> Chris McDonough wrote:
> > 
> > > What I want to do seems like it should be simple, but from my
> > > newbie/non-Zen/still-confused-by-acquisition perspective 
> I am stumped.
> > >
> > > I have a standard_html_header in / folder :
> > >
> > > <HTML>
> > > <HEAD>
> > >    <TITLE>
> > >      <!--#var title_or_id-->
> > >    </TITLE>
> > > </HEAD>
> > >
> > > <BODY>
> > >
> > > In the /mse250 folder, I have a method index_html with
> > > title="The MSE250
> > > Homepage" as follows :
> > >
> > > <!--#var standard_html_header-->
> > >
> > > <H2><!--#var document_title--></H2>
> > >
> > > blah, blah, blah ....
> > >
> > > What I want to do is have my standard_html_header file 
> use <!--#var
> > > document_title--> (i.e. "The MSE250 Homepage") instead of the root
> > > folder <!--#var title_or_id--> (i.e. MSE250)  between the 
>    <TITLE>
> > > </TITLE> tags. This seems like a logical thing to want to 
> do - to cut
> > > down on the amount of repetitive code by using a standard
> > > header, but at
> > > the same time, having the header change depending on what 
> method is
> > > calling it.
> > >
> > > any help is greatly appreciated ,
> > >
> > > Darcy
> > 
> > DTML methods have no attributes of their own.  What you're 
> seeing is the
> > title_or_id of the containing folder.  You'll need to spend 
> some time
> > with the Zope Content Manager's Guide to get a feel for why this is
> > happening.
> 
> But is there a way to do it?  I want to do the exact same thing, and
> asked about it (as my first question to this list).  Although 
> I received
> a few responses with suggestions, none of them worked out.
> 
> 
> p.s., as a side note to the Zope developers, the more I look at this
> thing, the cooler it gets....  Thanks for what so far looks like an
> incredible product.
> 
> _______________________________________________
> 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 )
>