[Zope] Using odd numbers

Tom Cameron tom@cameron.to
Mon, 23 Apr 2001 19:37:34 +1000


If you are using a standard <dtml-in > call you can do something like this..

<TABLE>
<dtml-in somelist>
 <dtml-if sequence-even>
   <TR bgcolor="#eeeeee">
 <dtml-else>
   rest of table stuff...

</dtml-in>
</TABLE>

Tom Cameron

=> -----Original Message-----
=> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
=> gitte@mmmanager.org
=> Sent: Monday, 23 April 2001 7:28 PM
=> To: zope@zope.org
=> Subject: [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 )
=>