[Zope] using "sequence-even" in nested "dtml-in" loops?
Sajec, Mike TQO
msajec at tqs.com
Thu Aug 7 14:37:27 EDT 2003
Hello,
If someone can help with this, I would really appreciate it.
I'm trying to setup alternating colors in a query built table. I'm
attempting to key off the sequence-even variable to set the row colors. The
problem that I'm seeing is that sequence-index always equals zero, which
makes sequence-even always true, and every row grey. It appears that
sequence-index is looking at the outer loop. Any hints?
Thanks in advance,
Mike
<p>
<table class="listing" id="contact_list">
<thead>
<th>Name</th>
<th>Position</th>
<th>Phone</th>
<th>Pager</th>
<th>Cell</th>
<th>Email</th>
</thead>
<tbody>
<dtml-in sql_get_pe_ids>
<dtml-in sql_get_pe_contact_info>
<dtml-if sequence-even> #*******************HERE
<tr bgcolor="gray"> #*******************HERE
<dtml-else> #*******************HERE
<tr> #*******************HERE
</dtml-if> #*******************HERE
<td><dtml-var last_name>, <dtml-var first_name></td>
<td><dtml-var job_title></td>
<td><dtml-var ext></td>
<td><dtml-var pager></td>
<td><dtml-var cellphone></td>
<td><dtml-var email></td>
</tr>
</dtml-in>
</dtml-in>
</tbody>
</table>
</p>
More information about the Zope
mailing list