[Zope] Lines with different colors

Dragos Chirila d.chirila@bucarest.finsiel.ro
Thu, 6 Mar 2003 15:38:37 +0200


HI

go to 'Help' from your Zope console and search for 'dtml-in'

there is the following example :

    Creating alternate colored table cells: 
      <table>
      <dtml-in objectValues>
      <tr <dtml-if sequence-odd>bgcolor="#EEEEEE"
          <dtml-else>bgcolor="#FFFFFF"
          </dtml-if>
        <td><dtml-var title></td>
      </tr>
      </dtml-in>
      </table>

rgds



> Hi all,
> 
> I am experimenting around with zope and I want to do following thing:
> 
> I call values from the database and give them out.
> Now I want each second line in a different color.
> 
> How do I do that?
> 
> Thanks in advance
> 
>     Sorin
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>