[Zope] Variables...
Ivan Cornell
ivan.cornell@framestore.co.uk
Wed, 28 Mar 2001 16:04:42 +0100
> <!--#let cor="'FALSE'"--><!--#/let-->
> <table>
> <dtml-in "especialidade.objectValues()">
> <dtml-if "cor == 'FALSE'">
> <!--#let cor="'TRUE'"--><!--#/let-->
> <tr bgcolor="#EEEEEE">
> <dtml-else>
> <!--#let cor="'FALSE'"--><!--#/let-->
> <tr bgcolor="#007CC3">
> </dtml-if>
> </dtml-in>
> </table>
>
In this case:
<dtml-in "especialidade.objectValues()">
<dtml-if sequence-even>
<tr bgcolor="#EEEEEE">
<dtml-else>
<tr bgcolor="#007CC3">
</dtml-in>
See the ZQR (http://www.zope.org/Members/ZQR) for useful <dtml-in>
variables
Generally, use
<dtml-call "REQUEST.set('cor', 'FALSE')">
for something like this
Ivan