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>
I must be having a bad day. The code I included at the end of my last note was the code that actually works correctly. The one that doesn't work is: <dtml-in "PARENTS[0].objectValues(['DTML Document'])"> <dtml-if "_['sequence-item'].hasProperty('isMenu')"> ...do stuff using <dtml-var id>... </dtml-if> </dtml-in> In other words, I finally did manage to get the result I wanted, but the 'simplest' way (above) doesn't work, and it took me a long time to figure out why. Sorry for the confusion. Dave Morrill