[Zope] Equality test: if sequence-item = document id

Max Møller Rasmussen maxm@normik.dk
Fri, 1 Jun 2001 13:21:56 +0200


> From: Garry Steedman [mailto:gs@styrax.com]

> <dtml-in "PARENTS[0].objectIds('DTML Document')">
> <dtml-if expr="_['sequence-item']=='this().id'">
> <li><dtml-var sequence-item>
> <dtml-else>
> </dtml-if>
> </dtml-in>

> which of course doesn't work, but i'm not sure why or what i need 
> instead!

wont this work?

<dtml-in "PARENTS[0].objectIds('DTML Document')">
<dtml-if "_['sequence-item']==id">
<li><dtml-var sequence-item>
<dtml-else>
</dtml-if>
</dtml-in>

regard Max M