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"

From ChipWhisperer Wiki
Jump to: navigation, search
(= Fixes for sidebar)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
  
 
== Mods to CategoryTree ==
 
== 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;
Line 10: 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 15: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)