[Zope] dtml-in help
Marcus Bergmann
zope@zope.org
Fri, 01 Mar 2002 15:18:02 +0100
Todd Loomis wrote:
>
> Hi All:
>
> I want to put a set <dtml-in> tag based on a select variable as such:
>
> <dtml-if "select=='All'">
> <dtml-in get_all_users>
> <dtml-else>
> <dtml-in get_select_users>
> </dtml-if>
>
> but I keep getting an error. Can I do this?
>
> Regards,
> Todd
>
I'm sure you want this:
<dtml-if "select=='All'">
<dtml-var get_all_users>
<dtml-else>
<dtml-var get_select_users>
</dtml-if>
<dtml-in> makes a loop over a list of objects it doesn't mean include!
example:
<dtml-in "objectItems()">
<dtml-var title>
</dtml-in>
Marcus