Topic on Extension talk:CategoryTree/Archive 06

sidebar root does not show up with timeless skin

2
T tfbb (talkcontribs)

hi -

thank you very much for your work. After upgrading mediawiki from v1.35 to 1.39, the sidebar root won't show up when using the timeless skin bundled with mediawiki - this worked fine with v1.35. It also works fine with the vector (2022) skin, the configuration is rather minimal:

[…]
$wgCategoryTreeSidebarRoot = "categories";
$wgCategoryTreeForceHeaders = true;
$wgCategoryTreeSidebarOptions["depth"] = "2";
[…]

with kind regards, thoralf.

Lucienmp (talkcontribs)

As it says in the text for CategoryTree then it wont show up, however what I found you can do is add categorytree-portlet by editing your sidebar page. It still wont show because the parsing makes it vanish because the portlet becomes an empty list due to the point at which it parses but I have a work around;

  1. Edit the file skins/Timeless/includes/TimelessTemplate.php
  2. In function getMainNavigation just after "if ( $content === false ) {...}" add
if( empty($content) ) {
         $content="SOME-RANDOM-NON-BLANK-TEXT";
<nowiki>}</nowiki>

See also: Topic:Ut736xttilfsof5p

Filed a bug: https://phabricator.wikimedia.org/T384508