thanks, I will check it out.
Reason for the different approach is that we have to have
an aditional layer inbetween pages and modules as we call them.

We have a list of modules which are plain texts pieces that can
be on several pages in the site (and other things, they are xml based
and can be used in PDF as well).
There is one template for the whole site (which is a *complete* html
document since just headers and footers won't work most of the time).

Pages are only bindings of module names to labelnames and the
template name to be used for the page.
A typical page is:


<dtml-with templates>
 <dtml-var template_balloon_dtml>

The site-template would contain something like:

<span id="navigationtext">
 <dtml-if label1>
  <span id="label1"><dtml-var label1_to_html></span>
 <dtml-if label2>
  <span id="label2"><dtml-var label2_to_html></span>

<span id="otherlabels">
 <dtml-var label3_to_html>
 <dtml-var label4_to_html>
 <dtml-var label5_to_html>
 <dtml-var label6_to_html>
 <dtml-var label7_to_html>

<dtml-if label8>
 <span id="sidelabel"><dtml-var label8_to_html></span>

One of the advantages this way is that modules take care of themselves.
Adding a parameters in the url will make all the modules add a button
to themselves as link to an editor windows on that module. Page and
template don't need to know.

This contruction has proved very flecxible, but is the opposite from
the translate approach.

Regards, Petr

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to