[Zope] dtml-if for a boolean property

Leigh Ann Hildebrand leighann@onebox.com
Fri, 29 Jun 2001 13:54:35 -0700


I'm using 2.3.2. I've got a dtml-method, index_outline, to display folder
contexts for dynamic index_html pages. It had included the a dtml-if
statement <dtml-if "_['id']=='index_html'"></dtml-if>, to prevent the
index_html files themselves from displaying in the file list. 

It occurred to me that I had other files and types of objects that I
didn't want to show in my index_html, 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. 

Thanks!


-- 
Leigh Ann Hildebrand
leighann@onebox.com - email
(650) 223-2199 x2231 - voicemail/fax



__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com