11 May
2004
11 May
'04
1:42 p.m.
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