[Zope] dtml-if for a boolean property

Leigh Ann Hildebrand leighann@onebox.com
Mon, 02 Jul 2001 11:07:52 -0700


*sigh* I feel stupid, but I'm not able to work this. 

I don't program; I've been using Zope for about a month. 

What I have is: 

<dtml-in expr="_[foldername].objectValues()" sort="bobobase_modification_time"
reverse>
<dtml-if "_['id']=='index_html'"></dtml-if>
<dtml-unless "_['id']=='index_html'">
<li>
<a href="<dtml-var absolute_url>"><dtml-var title></a><br>
Maintained by <dtml-var maintainer missing="No maintainer">. <br><dtml-var
description missing="No description."> Last revision date <dtml-var version_date
missing="unknown">.
</dtml-unless>
</dtml-in>
</UL>

That's making an unordered list of files in a directory (with some properties
they have) without listing index_html. 

When I tried to use your suggestion, I generate *no* list at all in any
directory with a file with an index_hide property set. 

What's wrong here? 

Leigh Ann

-- 
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