[Zope] Indirect addressing
Max Møller Rasmussen
maxm@normik.dk
Thu, 7 Dec 2000 13:56:55 +0100
From: Ragnar Beer [mailto:rbeer@uni-goettingen.de]
>+ myfolder
> index_html
> my_external_method
> dtml_method_1
> dtml_method_2
> ...
>In index_html I want to include either dtml_method_1 or
>dtml_method_2, ... (one method for every week of year).
>my_external_method tells me which dtml_method to include.
>This would logically be handled with "<dtml-var <dtml-var
>my_external_method>>" in index_html but this doesn't work.
Something like this ought to work:
<dtml-var "objectValues('DTML Method')[my_external_method()]">
This is a no-no, as you cannot have nested dtml:
<dtml-var <dtml-var>my_external_method>>
Regards Max M