Difference between revisions of "User:Andre"
From Beyond Social
Line 15: | Line 15: | ||
Requires Categories to be organized as parents and children, with the parent category defined in extensions/SelectCategory/SelectCategory.php | Requires Categories to be organized as parents and children, with the parent category defined in extensions/SelectCategory/SelectCategory.php | ||
− | < | + | <pre> |
#$wgSelectCategoryNamespaces - list of namespaces in which this extension should be active | #$wgSelectCategoryNamespaces - list of namespaces in which this extension should be active | ||
if( !isset( $wgSelectCategoryNamespaces ) ) $wgSelectCategoryNamespaces = array( | if( !isset( $wgSelectCategoryNamespaces ) ) $wgSelectCategoryNamespaces = array( | ||
Line 57: | Line 57: | ||
NS_CATEGORY_TALK => false | NS_CATEGORY_TALK => false | ||
); | ); | ||
− | </ | + | </pre> |
Revision as of 20:15, 19 April 2016
<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' );
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 );