If you are like me, you like to keep your standard_html_[header,footer] fairly stock. I have started including dtml-method components in my pages like this: <dtml-var name="standard_html_header"> <dtml-var name="top_navbar"> *CONTENT HERE* <dtml-var name="bottom_navbar"> <dtml-var name="standard_html_footer"> Though, I have a difficult situation: If I understand correctly, definition of JavaScript functions belongs in the <head> tags. Does anyone know how to do this? Troy -----Original Message----- From: Jan H. Haul [mailto:jan@haul.de] Sent: Thursday, December 14, 2000 12:17 PM To: Nuno Goncalves Cc: Oleg Broytmann; Zope@zope.org Subject: Re: [Zope] site structure Nuno Goncalves wrote:
On Thu, 14 Dec 2000, Nuno Goncalves wrote:
How can we define a structure for an entire site with Zope ? for example i want that all the site's pages have a table with 3 colums. it's kind of a template for the web site !
Using standard_html_header and standard_html_footer in every Document
on
your site... But that way if i want to change the structure, i have to change on every page. My ideia was to create a template(3 colums) where i add objects (dtml documents). If i want to change the site structure to 2 colums i only change the template !
Nuno
That is *exactly* what standard_dtml_header and ...footer are for. Together, they *are* your template. You *include* these in every document (using the <dtml-var standard...> tag. They'll show up in your documents at run time. Put the default template into the root folder and all your DTML documents will acquire it. In a sub-folder, you can either do nothing (then the acquired header and footer will be used), or override these with a folder-specicic template. See the Zope book, it explains it pretty well. Jan _______________________________________________ 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 )