30 Aug
2001
30 Aug
'01
8:40 p.m.
paul dunbar writes:
I have a tree implented on a website and am trying to count the number of nodes or children each visible branch has without you actually having to open the branch.i would like to be able to show the number of documents the branch has underneath it.my problem is that when i search the catalog for say meta-type 'material',i get the same result on all the branches.this is because i cannot distinguish between 'material' that is a child of the branch,and material under all branches. A path index (Zope 2.4 and up) could help you.
The alternative would be to use "ZopeFind" to locate an count the descendants or children. Dieter