[Zope-CMF] Re: [Zope] Using odd numbers

Gitte Wange gitte@mmmanager.org
Mon, 23 Apr 2001 06:59:26 -0500 (EST)


Okay I got it to work - sort of :-)

Now I'm using it inside a CMF Portal.
And I would like to use the built-in stylesheet so that every second line has
another background color. But I am having some difficulties doing this.

Do you need to set a class into the table tag to get it to work ?
Because it doesn't work if I only set a class in the tr-tag.

Regards,
Gitte

Citat Geir Bækholt <geirh@funcom.com>:

> 
> <dtml-if sequence-index-odd>
> ought to work...
> 
> :-)
> 
> --
> Geir Bækholt
> Web-Developer/Zopatista
> geirh@funcom.com
> http://www.funcom.com
> 
> on or about, Monday, April 23, 2001, we have reason to believe that
> gitte@mmmanager.org wrote something along the lines of :
> gmo> Hello,
> 
> gmo> One time I saw some code using something like:
> gmo> <dtml-if odd>
> gmo>  <TR BACKGROUND="#FFFFFF">
> gmo> <dtml-else>
> gmo>  <TR BACKGROUND="#000000">
> gmo> </dtml-if>
> gmo> used to color the lines differently in a table.
> 
> gmo> I have tried the above code but it doesn't seem to be working -
> anyone who
> gmo> remembers the correct code ?
> 
> gmo> Regards,
> gmo> Gitte
> 
> gmo> _______________________________________________
> gmo> Zope maillist  -  Zope@zope.org
> gmo> http://lists.zope.org/mailman/listinfo/zope
> gmo> **   No cross posts or HTML encoding!  **
> gmo> (Related lists - 
> gmo>  http://lists.zope.org/mailman/listinfo/zope-announce
> gmo>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 

_______________________________________________
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 )

----- Slut på videresendt meddelelse -----