[Zope] how to hide things from tree-tag ??

Geir B Hansen geirh@funcom.com
Wed, 10 Nov 1999 11:49:32 +0100


I have a tree-tag, making a tree over all DTML-docs and Folders in my
site.. works nicely..
Now, i'd like to hide some folders from the tree, but i cannot make this
work.. (i'm not to clever with python expressions)

my tree tag looks like this..
<!--#tree branches_expr="objectValues(['Folder', 'DTML Document'])"
single=1 nowrap=1 sort=meta_type skip_unauthorized=1 -->

i have assigned a boolean property called 'hidden' to the folders i'd
like to not show up.
If i do something like this :
<dtml-unless hidden>
<dtml-if expr="meta_type == 'Folder'">
<P><A HREF="/<dtml-var tree-item-url>/"><dtml-var title_or_id></A></P>
</dtml-if>
</dtml-unless>
-  the titles are hidden, but the little plus-signs show up. This just
looks confusing, and is not what i want..

so, i guess what i have to do, is to make an evaluation of some kind
inside the branches_expr=""
Is this correct ??  how do i fix it ?

thanks

------------------------------------------------
Geir B Hansen
geirh@funcom.com
Web-designer / Graphic artist
Funcom Oslo
http://www.funcom.com
------------------------------------------------