User:Andre
From Beyond Social
<categorytree mode=pages depth=3 showcount=true>BS</categorytree>
Wiki Settings
Extensions
SelectCategory
SelectCategory is responsible for the bottom category selection in menus
Extension does not work with skin Vector in MW 1.26. Needs to be changed to wfLoadSkin( 'MonoBook' );
And requires CategoryTree. See settings in #CategoryTree section.
Requires Categories to be organized as parents and children, with the parent category defined in extensions/SelectCategory/SelectCategory.php
#$wgSelectCategoryNamespaces - list of namespaces in which this extension should be active if( !isset( $wgSelectCategoryNamespaces ) ) $wgSelectCategoryNamespaces = array( NS_MEDIA => true, NS_MAIN => true, NS_TALK => false, NS_USER => false, NS_USER_TALK => false, NS_PROJECT => true, NS_PROJECT_TALK => false, NS_IMAGE => true, NS_IMAGE_TALK => false, NS_MEDIAWIKI => false, NS_MEDIAWIKI_TALK => false, NS_TEMPLATE => false, NS_TEMPLATE_TALK => false, NS_HELP => true, NS_HELP_TALK => false, NS_CATEGORY => true, NS_CATEGORY_TALK => false ); # $wgSelectCategoryRoot - root category to use for which namespace, otherwise self detection (expensive) if( !isset( $wgSelectCategoryRoot ) ) $wgSelectCategoryRoot = array( NS_MEDIA => "BS", NS_MAIN => "BS", NS_TALK => false, NS_USER => false, NS_USER_TALK => false, NS_PROJECT => "BS", NS_PROJECT_TALK => false, NS_IMAGE => "BS", NS_IMAGE_TALK => false, NS_MEDIAWIKI => false, NS_MEDIAWIKI_TALK => false, NS_TEMPLATE => false, NS_TEMPLATE_TALK => false, NS_HELP => "BS", NS_HELP_TALK => false, NS_CATEGORY => "BS", NS_CATEGORY_TALK => false );
CategoryTree
require_once( "$IP/extensions/CategoryTree/CategoryTree.php" ); $wgUseAjax = true; $wgCategoryTreeDynamicTag = true; $wgCategoryTreeSidebarRoot = "BS"; #$wgCategoryTreeDefaultOptions['mode'] = 'all'; /* $wgCategoryTreeMaxChildren = 400; */ $wgCategoryPagingLimit = 400; $wgCategoryTreeForceHeaders = true; $wgCategoryTreeSpecialPageOptions=true; $wgCategoryTreeDynamicTag=true; $wgCategoryTreeDefaultMode=true;