> <relation from="category" to="category" type="posrel" /> >I know that I can use "relatednodes" to get the subcategories of a category, however, how >do I get that subcategory's categories, and etc? > >I know, I have been asking a lot of questions of late, bear with me. Your replies are greatly >appreciated. Hi, the standard MMBase object/relation model is not very well suited to store tree type structures. If you want to store tree structures I would advice to include the "pos, parent (and maybe treeid" field in the category node so that it's possible to retrieve the categories in in one database query (with a bit of sorting)
there is a tree tag http://www.mmbase.org/development/api/1.7/org/mmbase/bridge/jsp/taglib/tree/TreeTag.html if that is enough you are lucky :) there is the example of mmbase (not very nice code, but does the work, I can say that because I wrote it..) http://michiel.mmbase.net/cgi-bin/viewcvs.cgi/mmbase.org/mmweb/includes/nav.jsp?rev=1.9&view=markup
