As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com. |
Difference between revisions of "Administrative Details"
(Created page with "In the 1.26 version (https://www.upwork.com/leaving?ref=https%3A%2F%2Fgithub.com%2Fwikimedia%2Fmediawiki-extensions-CategoryTree%2Ftree%2FREL1_26) you need to go to extensions...") |
(→= Fixes for sidebar) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | == Mods to CategoryTree == | ||
+ | |||
+ | ==== Addition to allow expansion by default ==== | ||
+ | |||
In the 1.26 version (https://www.upwork.com/leaving?ref=https%3A%2F%2Fgithub.com%2Fwikimedia%2Fmediawiki-extensions-CategoryTree%2Ftree%2FREL1_26) you need to go to extensions/CategoryTree/CategoryPageSubclass.php at line 39 repalce "global $wgRequest;" with global $wgRequest, $wgExpandedLevelsOnCategoryPages; | In the 1.26 version (https://www.upwork.com/leaving?ref=https%3A%2F%2Fgithub.com%2Fwikimedia%2Fmediawiki-extensions-CategoryTree%2Ftree%2FREL1_26) you need to go to extensions/CategoryTree/CategoryPageSubclass.php at line 39 repalce "global $wgRequest;" with global $wgRequest, $wgExpandedLevelsOnCategoryPages; | ||
if (!$wgExpandedLevelsOnCategoryPages){ | if (!$wgExpandedLevelsOnCategoryPages){ | ||
Line 7: | Line 12: | ||
After this you need to add this $wgExpandedLevelsOnCategoryPages = 10; to localsettings (it represents the expanding levels on category pages) | After this you need to add this $wgExpandedLevelsOnCategoryPages = 10; to localsettings (it represents the expanding levels on category pages) | ||
+ | |||
+ | ==== Fixes for sidebar ==== | ||
+ | |||
+ | See https://www.mediawiki.org/w/index.php?title=Topic:Sde4gvisgd1ffcez&topic_showPostId=sdynp60mol2zsrsb#flow-post-sdynp60mol2zsrsb |
Latest revision as of 14:00, 26 March 2017
Mods to CategoryTree
Addition to allow expansion by default
In the 1.26 version (https://www.upwork.com/leaving?ref=https%3A%2F%2Fgithub.com%2Fwikimedia%2Fmediawiki-extensions-CategoryTree%2Ftree%2FREL1_26) you need to go to extensions/CategoryTree/CategoryPageSubclass.php at line 39 repalce "global $wgRequest;" with global $wgRequest, $wgExpandedLevelsOnCategoryPages; if (!$wgExpandedLevelsOnCategoryPages){ $wgExpandedLevelsOnCategoryPages = 0; } and on few lines below replace $this->children[] = $tree->renderNodeInfo( $title, $cat); with $this->children[] = $tree->renderNodeInfo( $title, $cat, $wgExpandedLevelsOnCategoryPages ); Or you can directly copy this file completely from test.
After this you need to add this $wgExpandedLevelsOnCategoryPages = 10; to localsettings (it represents the expanding levels on category pages)