[Zope] index_html of zclass
Jim Washington
jwashin at vt.edu
Tue May 11 09:42:47 EDT 2004
Einar Næss Jensen wrote:
> I have a zclass (with ZObject, ZObjectManager baseclasses) "Content"
> with a method index_html.
> If it is possible, how may i add an index_html to the instances of
> "content"?:
>
> /zclass Content
> |
> index_html
>
>
> Content instance
> |
> index_html
>
Probably easiest is to make a conditional
/zclass Content
|
index_html
would contain something like
<dtml-if custom_index_html>
<dtml-var custom_index_html>
<dtml-else>
[standard content]
</dtml-if>
and
Content instance
|
custom_index_html
contains the instance-specific content
--Jim Washington
More information about the Zope
mailing list