Paul van Beukering <[EMAIL PROTECTED]> wrote: > Imagine, I have defined an objecttypes products and categories. > Products are grouped in categories, these categories can have > subcategories...etc, recursive. > Is there a way to query an objecttree like this in a single call, or do I > have to query for subcategories for every category I find?
There is the 'TreeList'. It is new and still more-or-less experimental code (with appropriate sparseness of documentation). It will actually do more database queries, but no more than the 'depth' of the tree (so it very limited). A 'recursive' variant is implemented in org.mmbase.bridge.util.GrowingTreeList. There is a taglib-interface for it too, with tags like mm:tree mm:shrink, mm:grow and mm:ongrow. Existing api-doc and taglib doc for this can be found on mmbase.org. For further questions I recommend IRC :-) Michiel -- Michiel Meeuwissen Mediacentrum 140 H'sum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] ()
