Klaus Herrmann wrote:
On Fri, 11 May 2001 08:33:26 -0500, Tim Cook said:
Klaus Herrmann wrote:
Hi!
I have the following problem: i have a dtml-tree listing the directory structure. but i want to be able
to
define a property called "hidden" (bool) on folders. these hidden folders mustn't appear in the tree. any ideas how this could be done?
thank in advance!
UNTESTED, stab at it:
<dtml-tree branches_expr="objectValues(['Folder']) AND NOT is_hidden">
doesn't work: "invalid syntax (line 1)" (when trying to save the dtml doc). if i write "and not" instead of "AND NOT", the tree doesn't have any branches anymore :-(
This works, but may not be exactly what you are looking for though? --------------------------------- <dtml-var standard_html_header> Normal Tree<br> <dtml-tree branches_expr="objectValues(['Folder'])"> <dtml-var id> </dtml-tree> Hidden Folder Test<br> <dtml-tree branches_expr="objectValues(['Folder'])"> <dtml-if expr="not is_hidden"><dtml-var id></dtml-if> </dtml-tree> <dtml-var standard_html_footer> --------------------------------- There may be a way to get it to work in the branches_expr??? -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM