[Zope] refering to the id of the enclosing folder in a tree tag

Lucas Hofman lucas.hofman@oslo.pgs.com
Wed, 26 Jan 2000 17:16:04 +0100


If I have a folder structure like this

a
  a1
  a2
  a3
b

etc.

Using a treetag to traverse this how can I refer to the id of the
enclosing folder (that is the folder dat contains the 'current' element?

I tried this:
<dtml-tree reports
        branches_expr="objectValues(['Folder'])" 
        >
    <dtml-var "PARENTS[0].id"> <dtml-var id>
</dtml-tree>

but that gives the id of the folder containing the method which contains
this DTML snippet. 

Any suggestions?

Thanks, Lucas
-- 
PGS Seres                                        tel: +47 67514059
PO Box 354                                       fax: +47 67526506
N-1324 Lysaker
Norway