Topic on Extension talk:CategoryTree/Archive 06

category pages not displayed in sidebar

2
Xavi.developer (talkcontribs)

I am able to display both categories and pages inside a page with code

<categorytree mode="pages">ParentCategory</categorytree>

but when adding this to LocalSettings it just displays categories

wfLoadExtension( 'CategoryTree' );

$wgCategoryTreeSidebarRoot = "ParentCategory";

$wgCategoryTreeDefaultOptions['mode'] = 'pages';


I have also tried

$wgCategoryTreeDefaultMode = 10;


what am I missing?

imgur .com/a/kMWYpmJ


Thanks

Tacsipacsi (talkcontribs)

The configuration option $wgCategoryTreeSidebarOptions, which overrides the defaults set in $wgCategoryTreeDefaultOptions. I think you should be able to remove the override by calling unset($wgCategoryTreeSidebarOptions['mode']); but if you actually don’t want to override the default mode for category trees added in wikitext, you can just set $wgCategoryTreeSidebarOptions['mode'] = 'pages'; and remove the $wgCategoryTreeDefaultOptions['mode'] setting.

Reply to "category pages not displayed in sidebar"