mediawikimediawiki-extensions

MediaWiki Category Tree expand all by default


Im using the Category Tree extension for MediaWiki which allows you to create a nice tree view of all categories.

By default when you visit a page with a category tree you have to expand a category manually by clicking the toggle symbol.

Is there a way to expand all categories by default? Where do i have to make changes in code?


Solution

  • Mediawiki has Jquery by default so you can just click with Jquery:

    $('.CategoryTreeToggle').click();