excluding objects with a certain title from tree
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
Meilicke, Scott writes:
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>"> "branches" expects the name of a method as attribute value. It uses this value as a literal name, no evaluation whatsoever. You give it "<dtml-var left_tree_nodes>", which does not exist, of course.
Depending of what your "left_tree_nodes" is/does, branches=left_tree_nodes may solve your problem. Dieter
participants (2)
-
Dieter Maurer -
Meilicke, Scott