[Zope] Namespace + syntax question
RC Compaan
roche@up-front.co.za
Tue, 15 Feb 2000 18:25:50 +0200
I modified it like so:
<dtml-if "_.fmod(_['sequence-index'],10)==0">
</tr>
<tr><td><dtml-var sequence-item></td>
<dtml-else>
<td><dtml-var sequence-item></td>
</dtml-if>
Now i get:
Error Type: AttributeError
Error value: fmod
i'm lost. is this the right approach or is there another way?
roché
> > I want to create a list of image thumbnails in a table. On every tenth
> item
> > i want to start a new row. I thought the "fmod" function is
> appropriate.
> I
> > get a syntax error however.
> >
> > My DTML:
> >
> > <dtml-in "PARENTS[0].objectItems('Image')">
> > <dtml-if sequence-start>
> > <table><tr>
> > </dtml-if>
> > <dtml-if "_.fmod(_.['sequence-index'],10)=0">
>
> shouldn't that be "==0"?
>