Topic on Extension talk:CategoryTree

"depth" parameter not working with pages

4
Dirk 80 (talkcontribs)

Hello, I have only a small hierarchy and I would like that the categorytree is initially fully expanded including pages and possibly subpages. Because of this I use the "depth" parameter.

Here an example of the following hierarchy: main_category->programming_category->ada_page
main_category->programming_category->c_page
<categorytree hideroot="on" mode="pages" depth="5">main_category</categorytree>

But the cateory tree only initially shows the categories, i.e. "programming_category" The pages are not shown initially. But if I manually click on the "+" left to "programming_category" then the pages are shown.

What do I have to do to initially expand "pages/subpages"? Why is the depth parameter only relating to categories and not to pages?

I'm using a 1.19 mediawiki and the latest stable version of the categorytree extension.

Thank you.

Best regards,
Dirk

Cavila (talkcontribs)

+1. A configuration setting that allows you to collapse/expand subpages would be very useful!

202.67.4.113 (talkcontribs)

Hi,

Did you get this working?

Sophivorus (talkcontribs)

Set $wgCategoryTreeMaxDepth[ CT_MODE_PAGES ] = 5; in your LocalSettings.php

Reply to ""depth" parameter not working with pages"