[Zope] dtml-if for a boolean property
Dieter Maurer
dieter@handshake.de
Sat, 30 Jun 2001 12:03:46 +0200 (CEST)
Leigh Ann Hildebrand writes:
> ....
> so I'd be better off using a property
> (index_hide in this case) that I could set for individual objects. However,
> when I've tried to modify the above dtml-if statement for a boolean index_hide
> property, it doesn't work.
>
> What's the proper syntax for that? A value of true for index_hide should
> prevent it showing.
<dtml-with "_.getitem(*individual object*">
<dtml-if index_hide>
....
</dtml-if>
</dtml-with>
Dieter