Difference between revisions of "CategoryTree"

From Biowikifarm Metawiki
Jump to: navigation, search
(Created page with '===CategoryTree extension=== The CategoryTree extension is already included as a standard in wikis of the biowikifarm and usually does not require installation. However, it can b...')
 
Line 10: Line 10:
 
$wgCategoryTreeMaxDepth = array(CT_MODE_PAGES => 2, CT_MODE_ALL => 2, CT_MODE_CATEGORIES => 3, CT_MODE_PARENTS => 5);
 
$wgCategoryTreeMaxDepth = array(CT_MODE_PAGES => 2, CT_MODE_ALL => 2, CT_MODE_CATEGORIES => 3, CT_MODE_PARENTS => 5);
 
</pre>
 
</pre>
near the end of the file would increase the depth levels To:
+
near the end of the file would increase the depth levels to:
 
* 3 levels for mode=categories
 
* 3 levels for mode=categories
 
* 5 levels for mode=parents
 
* 5 levels for mode=parents

Revision as of 09:58, 13 May 2010

CategoryTree extension

The CategoryTree extension is already included as a standard in wikis of the biowikifarm and usually does not require installation. However, it can be usefull to change the settings of the extension like the level of depth in which a category tree is displayed. For details on its use and its settings see the respective Wikimedia page.

Special settings

The depth level for displaying category trees depends on the mode, it is normally set to:

  • 2 levels for mode=categories (default)
  • 1 level for all other modes.

The depth level can be changed by adding a line to LocalSettings.php, e.g.

$wgCategoryTreeMaxDepth = array(CT_MODE_PAGES => 2, CT_MODE_ALL => 2, CT_MODE_CATEGORIES => 3, CT_MODE_PARENTS => 5);

near the end of the file would increase the depth levels to:

  • 3 levels for mode=categories
  • 5 levels for mode=parents
  • 2 levels for other modes.