[Zope] Nested dtml tags

Jaroslav Lukesh lukesh at seznam.cz
Tue Jun 20 07:28:52 EDT 2006


> bounces+lsh=wo.cz at zope.org] On Behalf Of Jonathan Bowlas
> 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.




<dtml-if MODLEVEL>
	<select name="MODLEVEL:int" size="1">
		<option value="1" <dtml-if expr="MODLEVEL ==
1">SELECTED</dtml-if> >1</option>
		<option value="2" <dtml-if expr="MODLEVEL ==
2">SELECTED</dtml-if> >2</option>
		Etc, etc.
</dtml-if>

Regards, JL.



More information about the Zope mailing list