[Zope] Using standard_html_header to display banner

Lennart Regebro lennart@torped.se
Mon, 29 Apr 2002 13:02:18 +0200


From: "EvH" <edward_van_h@bigfoot.com>
> Do you know of any easy way to let writers include a banner by just
> including <dtml-var standard_html_header> ?

Yes. Do it the other way around.
Instead of including things from the documents, make a template, and include
the content from it.

Make a DTML Method or a ZPT called index_html and put it in the root. From
that include the content (in dtml with a <dtml-var content>) and then put
all the content into dtml-methods called "content". Put one method in each
folder making each folder a document.
This also makes it easier to create automatic navigation.

Best Regards

Lennart Regebro
Torped Strategi och Kommunikation AB