[Zope] Conditionally selected option with ZPT
Fabio Rolando
ziofunk@tiscali.it
Wed, 23 Apr 2003 15:30:32 +0200
Hi.
I need to write a Page Template with a conditionally selected <OPTION>.
In DTML I would write
<select name="numero_bimestre">
<option value="1" <dtml-if
expr="propertysheets.props.numero_bimestre==1">selected</dtml-if>>gen-feb</option>
<option value="2" <dtml-if
expr="propertysheets.props.numero_bimestre==2">selected</dtml-if>>mar-apr</option>
...
</select>
Well, I don't find a way to do this with "tal" statements.
I hope you can help me.
Than you in advance
Regards
Fabio