[Zope] Using odd numbers

Peter Bengtsson peter@grenna.net
Mon, 23 Apr 2001 11:36:30 +0200


<dtml-in list>

 <dtml-if sequence-odd>
  <TR BACKGROUND="#FFFFFF">
 <dtml-else>
  <TR BACKGROUND="#000000">
 </dtml-if>

</dtml-in>

> -----Message d'origine-----
> De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de
> gitte@mmmanager.org
> Envoyé : lundi 23 avril 2001 11:28
> À : zope@zope.org
> Objet : [Zope] Using odd numbers
>
>
> Hello,
>
> One time I saw some code using something like:
> <dtml-if odd>
>  <TR BACKGROUND="#FFFFFF">
> <dtml-else>
>  <TR BACKGROUND="#000000">
> </dtml-if>
> used to color the lines differently in a table.
>
> I have tried the above code but it doesn't seem to be working - anyone who
> remembers the correct code ?
>
> Regards,
> Gitte
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )