Topic on Extension talk:CategoryTree

Reasonable Expectation for $wgCategoryTreeCategoryPageOptions

2
Zacharysyoung (talkcontribs)

Here's my setup:

Product Version
MediaWiki 1.20.3 (r264)
PHP 5.3.3 (apache2handler)
MySQL 5.1.67

I was trying to get Pages under a Subcategory to display in a Categories view. I tried the following in LocalSettings.php:

$wgCategoryTreeCategoryPageOptions['mode'] = CT_MODE_ALL;
$wgCategoryTreeSpecialPageOptions['mode'] = CT_MODE_ALL;

and

                                                                                           
$wgCategoryTreeCategoryPageOptions['mode'] = 'all';                                                                                       
$wgCategoryTreeSpecialPageOptions['mode'] = 'all';

but these had no effect.

It took going into extensions/CategoryTree/CategoryTree.php and changing NULL to CT_MODE_ALL:

$wgCategoryTreeDefaultOptions['mode'] = CT_MODE_ALL; # will be set to $wgCategoryTreeDefaultMode in efCategoryTree(); compatibility quirk
...
$wgCategoryTreeCategoryPageOptions['mode'] = CT_MODE_ALL; # will be set to $wgCategoryTreeDefaultMode in efCategoryTree(); compatibility quirk

for the behavior to change.

The documentation doesn't give any examples or make any assertions for $wgCategoryTreeCategoryPageOptions['mode'],

options to use on category pages

Has anyone else had any success with $wgCategoryTreeCategoryPageOptions['mode'] in LocalSettings.php?

Ancap (talkcontribs)

Are you adding after require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");?

Reply to "Reasonable Expectation for $wgCategoryTreeCategoryPageOptions"