[Zope] Nested dtml tags

Tino Wildenhain tino at wildenhain.de
Tue Jun 20 07:22:16 EDT 2006


Jonathan Bowlas schrieb:
> Hi All,
> 
> How can I do this with dtml?
> 
> <select name="MODLEVEL" size="1">
> 	<dtml-if expr="<dtml-var name="MODLEVEL"> == 1"> #I need an
> alternative to this.
> 		<option value="1" selected="selected">1</option>
> 		<option value="2"><2</option>
> 		Etc, etc.
> 
> Hope someone can help.
> 

No you cant. <dtml-var> means, unlike the name say really: dtml-print.
See it like that and it will be clear. (Or just skip that DTML alltogether)

Regards
Tino


More information about the Zope mailing list