[Zope] index_html, method or doc?
Flynt
rhess@bic.ch
Wed, 27 Jun 2001 14:59:01 +0200
Joachim Werner wrote:
>
> > You have to use DTML methods for the index_html (usually you will want
> > to include some other methods like standard_html-header and
> > standard_html_footer in your index_html). Did you have a look into the
> > Zope Book ?
>
> That's not quite correct. Both DTML Methods and DTML Documents work fine,
> but different:
>
> As a DTMLMethod, index_html will try to "acquire" all the parts it needs
> locally, e.g.
>
> you have a folder structure like this:
>
> ROOT
> |--- index_html
> |--- standard_html_header (with white background)
> |--- standard_html_footer
> |--- GREEN
> | --- standard_html_header (with green background)
> --- RED
> --- standard_html_header (with red background)
>
> RED/index_html will have a red background and GREEN/index_html will have a
> green one. Same with title attributes etc.
>
> If you use a DTML Document, it will only look for the "local" stuff, i.e. it
> will take its own title if you say "<dtml-var title>", and it will take the
> standard_html_header from the ROOT, which is white in the example.
>
> The other difference is that DTML Methods does not have properties at all.
> It can just acquire them. In most cases, people would use DTML Methods for
> almost everything. Only if you import HTML documents from the outside, it
> might be better to use DTML Documents.
>
> Cheers
>
> Joachim
Thank's for the clarification, I was a bit sloppy in my answer.
--- Flynt