[Mediawiki-l] how to create tree-like index from categories

Jason Grant jgrant at agentissoftware.com
Wed Aug 24 03:25:41 UTC 2005


MediaWiki: 1.4.7

I'm a new user of MediaWiki, and am wanting to render a tree-like table
of contents, where the branches are local categories and sub-categories,
and the leaves are hyperlinks to the pages in each category.  Can I
already do this with 'out of the box' MediaWiki capabilities, or must I
write an (?) extension?  

Here's an example of what I want:

MyTopLevelCategory
  TopLevelChildCategory
     PageThatIsInChildCatetory (hyperlinked)
AnotherTopLevelCategory
  AnotherChildCategory
     AnotherPageThatIsInChildCatetory (hyperlinked)

This way, my main page will remain up to date without edits, and will
help me to ensure that all my pages are categorized properly.

I don't care about possible cycles in the graph - I'll just duplicate
the leaves.

Thanks for any help,

Jason.




More information about the MediaWiki-l mailing list