On 04/08/05, Setten, Joost van Joost.van.Setten@ordina.nl wrote:
I have a question concerning the functions of the category namespace. This namespace automatically generates a list with subcategories and articles which are linked to this category. I have got the following question:
Is it possible to use these functions within another namespace? And if yes, how is this possible?
Well, the first answer is "no" - the category: namespace's special functionality is a hard-coded special case. But depending what you actually want to do, it may not be that much work to: * rename the namespace (very simple, since namespace-names are defined in LanguageXX.php) * duplicate the namespace by finding references to it in the code, and expanding them to apply also to another namespace; note that the way the category-memberships are stored in the database may also need fiddling with...
But the big question that arises, is why you want to do this at all - the categories are not forced into a strictly hierarchical structure, so you can have any number of "category trees" within the one namespace. In other words, why don't you just put the pages you want to have this facility in the existing Category namespace?