[Zope] standard_html_header difficulties

Tres Seaver tseaver@palladion.com
Sun, 05 Dec 1999 12:11:27 -0600


Darcy Clark <darcyc@engin.umich.edu> 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.

DTML Documents and Methods have a property, document_title, which gives what you
want.

-- 
=========================================================
Tres Seaver         tseaver@palladion.com    713-523-6582
Palladion Software  http://www.palladion.com