[Zope] dtml-tree items filtering

Dan Meszaros dm@petamem.com
Mon, 15 Jul 2002 15:42:07 +0200 (CEST)


Hi,

i'm trying to solve this thing: i'm building a sitemap. i have folders, that i
want to show, and want to hide the others. to differentaite them, i leave the
title string empty for those folders i need to hide.

i used:

<dtml-tree sort=title>
  <dtml-if "id != 'acl_users'">
     <dtml-if "title!=''">
       <A HREF="&dtml-absolute_url;" target=right>
       <IMG border=0 SRC="<dtml-var icon>"><dtml-var title></A>
     </dtml-if>
  </dtml-if>
</dtml-tree>

but having a folder with no title and a subfolder in it, the above
gives me the expand-plus-sign in the tree (but show no icon) for that folder.

can someone help?

regards
-dm