[Zope] Help! Why doesn't this work...

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Thu, 14 Oct 1999 18:34:05 -0400 (EDT)


David C. Morrill wrote:

> showed the problem as well as the more complex form I was actually trying to
> use:
> 
> <dtml-in "PARENTS[0].objectValues(['DTML Document'])">
>     <dtml-if "_.getitem('sequence-item').hasProperty('isMenu')">
>        ...do stuff using <dtml-var id>...
>     </dtml-if>
> </dtml-in>
> 

then try (untested):
<dtml-in "PARENTS[0].objectValues(['DTML Document'])">
     <dtml-if isMenu>
        ...do stuff using <dtml-var id>...
     </dtml-if>
 </dtml-in>

or 

<dtml-in "PARENTS[0].objectIds(['DTML Document'])">
     <dtml-if "_.getitem('sequence-item').hasProperty('isMenu')">                                             
        ...do stuff using <dtml-var id>... 
     </dtml-if> 
 </dtml-in> 


Pavlos