[Zope] Design/DTML question
Dennis Nichols
nichols@tradingconnections.com
Wed, 10 Jan 2001 17:29:42 -0600
At 1/10/01 01:22 PM, Timothy Wilson wrote:
>On Wed, 10 Jan 2001, Dennis Nichols wrote:
> > Or, if you insist that dates flow down the columns like I do, you could
> use
> > this untested revision of Max's solution
> <stuff removed>
>
>This doesn't seem to work. The if statement only evaluates to true the first
>time through the loop.
Because the objects in the loop had no 'id' attribute? In any case, here's
a complete tested example:
<dtml-var standard_html_header>
<dtml-call
"REQUEST.set('meetingDateTable',['first','second','third','fourth','fifth'])">
<table border=1 cellpadding=4>
<tr align=left valign=top>
<td width=50%>
<dtml-in meetingDateTable>
<dtml-if "_.int(_['sequence-index'])*2==_.len(meetingDateTable) or
_.int(_['sequence-index'])*2==_.len(meetingDateTable)+1">
</td><td width=50%> <!-- moved to next column -->
</dtml-if>
<dtml-var sequence-item><br>
</dtml-in>
</td>
</tr>
</table>
<dtml-var standard_html_footer>
--
Dennis Nichols
nichols@tradingconnections.com