[Zope] excluding objects with a certain title from tree

Meilicke, Scott scott.meilicke@intp.com
Tue, 11 Sep 2001 13:42:45 -0700


Hi all,

I've been banging my fingers for hours.  Using the tree tag, I'm trying to
find a way to display folders, and exlude folders with a certain id.

Here's what I have so far.

Calling the tree:
<dtml-tree portal branches="<dtml-var left_tree_nodes>">
	<a href="&dtml-portal_url;/<dtml-var tree-item-url
fmt=url-quote>"><IMG SRC="<dtml-var icon>" BORDER=0><dtml-var
title_or_id></a>
</dtml-tree>

the left_tree_nodes method:

<dtml-unless "id == 'Members' or id == 'hidden'">
	<dtml-return "objectValues('Portal Folder')">
</dtml-unless>

If I do something like:

<dtml-tree branches_expr="oejbectValues('Portal Folder')">
<dtml-unless "id == 'Members'">
<dtml-title>
</dtml-unless>
</dtml-tree>

I get a plus sign where the folder 'Members' is located, just no title.

Thanks - Scott