Re: [Zope] dtml-if for a boolean property
*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
Leigh Ann Hildebrand writes:
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. That's sign of a real master :-) It would take me hard to obtain this behavior ;-)
The following works for me (the way you want it to work): <dtml-in objectValues> <dtml-unless hide> &dtml-id; &dtml-absolute_url;<br> </dtml-unless> </dtml-in> Dieter
participants (2)
-
Dieter Maurer -
Leigh Ann Hildebrand