[Zope] Re: standard_html_header & index_html

Josef Meile jmeile at hotmail.com
Fri Sep 17 06:21:28 EDT 2004


Hi John,

> When you click on 'index_html' in the folder list, what is displayed in the
> shaded line just below the menu tabs? (it should be something like:  DTML
> Method at /folder/index_html)
> 
> If it is not a DTML Method: try deleting it, then use the 'Add' drop-down
> menu to create a new DTML Method with the name index_html.
Why don't you use a ZPT instead of DTML? It's better and cleaner. You 
can do:
<div tal:replace="structure here/standard_html_header">The Header</div>

Or just:
<tal:block replace="structure here/standard_html_header"/>

The last statement works and it is shorter, but I think it breaks the 
philosophy of ZPT: Producing a renderable template even if you aren't 
using zope.

Regards,
Josef



More information about the Zope mailing list