Extension talk:CategoryTree

Jump to: navigation, search

About this board


1 (2006/2007) - 2 (2008) - 3 (2009) - 4 (2010) - 5 (2011)

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Category pages - Remove MediaWiki lists

JimmyRoxburgh (talkcontribs)

Hi All

I use CategoryTree on every one of my Category pages.

I no longer need the built in MediaWiki Pages and Subcategory lists.

How can I disable these?

JimmyRoxburgh (talkcontribs)

I was able to acheive this using Extension:CSS

{{#css: #mw-subcategories {display: none}  #mw-pages {display: none} }}
Reply to "Category pages - Remove MediaWiki lists"

Customized collapse/expand/empty images broken after update

Rbirmann (talkcontribs)


I am having an issue with this extension after upgrading MW from 1.22 to 1.26. I have also updated my CategoryTree extension from whatever version I had installed a couple of years ago to the latest available version, so I am not sure to which of these upgrades my issue is related.

In our wiki, back in MW 1.22 and the old CT version, we had changed the color of the category tree bullets by changing MediaWiki:categorytree-collapse-bullet, MediaWiki:categorytree-expand-bullet and MediaWiki:categorytree-empty-bullet to something like this:

<span style="color:#ffd15a;">▼</span>

This was working fine, but now, in MW 1.26 with the latest CT version, if I click on a ► bullet to expand the category tree, the clicked bullet is replaced by:

<span style="color:#ffd15a;">▼</span>

... as if the contents of MediaWiki:categorytree-collapse-bullet were enclosed in <nowiki> tags.

Is this intentional behaviour? Or is it a bug?

Either way, how can I change the color (or content) of the bullets in the latest CategoryTree version?

Maybe (just thinking out loud here), editing MediaWiki:Common.css and adding a CategoryTreeToggle style definition there? Haven't tried this...

Thanks in advance (talkcontribs)

just started working on a mediawiki site and had issues with the CategoryTree 1.26 extension. I ended up using an older version (I used 1.23). My issue with the 1.26 CategoryTree extension was it hid all of the WYSIWG buttons for the wiki editor.

I did change the color of my triangles. The CSS looks different than yours in my version of CategoryTree. The triangle element had a class surrounded it, so it was easy to target. Hope that helps

This comment was hidden by Rbirmann (history)
Varlin (talkcontribs)

@Rbirmann I've got the same "span" problem since my upgrade to MW1.26... Did you find something to fix it?

EDIT : ok sorry I just totally forgot that I changed MediaWiki:categorytree-collapse-bullet page long time ago! It's better to remove it and use CSS...

Reply to "Customized collapse/expand/empty images broken after update"

$wgMaxArticleSize conflicts with <CategoryTree> tag

1 (talkcontribs)

A wrong value in this setting may cause that .js construction for categorytree tag exceeds this limit value. If you insert this tag and you see the plain text of the tag displayed instead of the tree with arrows to navigate, just try increasing the value of de config variable $wgMaxArticleSize. It worked on 1.27 version.

Reply to "$wgMaxArticleSize conflicts with <CategoryTree> tag" (talkcontribs)
 CAREER OBJECTIVE    Join. 1/06/1992. experience in production. field I intend to pursue a career in a competitive and challenging atmosphere particularly in Media  Entertainment and film Industry.

My biggest strength is my creativity and looking things in a positive way. I want to create a new definition of the language of production line

(IMDB) kasim Bhatt

Look my work
 Film or serial
Film  production

1.        Chamatkar-----------------Eagle film

2.        Ashiq awara---------------Eagle film

3.        Khuda gawah-------------glamour films

4.        Pratikar-------------------A.G nadiadwala

5.        Parampara----------------A.G nadiadwala

6.        Darr----------------------yash raj film

7.        Aaina---------------------Aditya film

8.        Guddu--------------------prem lalwani

9.        Ram shatre--------------A.G nadiadwala

10.     Suhag-------------------shweta international

11.     Sanam-------------------magnum film

12.     Ayud----------------------A.G nadiadwala

13.     Ekka raja rani-------------mark films

14.     Sapoot--------------------Jaydav Thackeray

15.     Salma pe dil agaya--------sawan kumar prod

16.      Chuppa rustam------------- madan maola

17.      Mira ke girdhar---------vishwa light & sound

18.      Jaj-Mujrim------------shiv shakti production

19.      88 antop hill --------------sarvodhay visual

20.      Wajood---------------------n.c.production

21.      Devta-----------------------abhishek film

22.      Qilla-------------------------Eagle film

23.      Style------------------n.c.production

24.      Ram jaane--------------Eagle film

25.      90 minute----------------pk film

26.      Askiyus mee-------------n.c.production

27.      Hum dum ----------------sarvodhay visual

28.      Stone man --------------kaleido scope

29.      Hadbedi -----------------kaleido scope

30.      Ravaan ------------------mani ratnam

31.      Queen -------------------I.view

32.      Ghost--------------------owl village

33.      Kuch Log----------------True media

34.      Munda patiale da-------Panjabi movie

35.      Yaa rab-------------------True film

36.      Oass----------------------True cinema

37.      Sona spa-----------------miraj Ent 


(1).  V.3--------------------------------------TRACKCINEMA

(2). Shatranj-------------------------TRACKCINEMA

(3). Umeed---------------------------TRACKCINEMA

(4). 10. civil. Line.------------------TRACKCINEMA

(5). Kora kaghaz. -------------------AKRUTI. FILM.

(6). Dal. Me. Kala.------------------AKRUTI. FILM.

(7). Kuch. Pal. Saath. Tumara.--- AKRUTI. FILM.

(8). Kangan.--------------------------AKRUTI. FILM.

(9). Nari. Tu. Na. hari.--------------AKRUTI.FILM.

(10). Akkand. Saubhagyavati.---- AKRUTI. FILM.

(11) Mahabharat---------------------KALAIDOSCPE 

Reply to "kasim bhatt" (talkcontribs)


I'm wondering if it's possible to use this addon for subpages rather than categories, such as subpages in a custom namespace, much like the extension Extension:SubPageList, although included in this extension. This because it would allow me to unly use one extension for both and also not having to implement the javascript needed for collapsing page lists.

Best regards,


Reply to "Using for subpages"

force categorytree to update when add new page.

Siggiae (talkcontribs)

I am invoking categorytree with the syntax {{#categorytree:Embryo|mode=pages|showcount|depth=2 etc. When I create a new page and add it to the category Embryo, categorytree will not list the new page. I can close/open the page that invoked categorytree, login again with no effect. If I look directly at the page Category:Embryo the new member page is listed immediately. The only way I can get the {{#categorytree:Embryo etc to update is to resave the page where it occurs. Same behavior if I use the tag syntax.

There must be a better way, I thought this function was dynamic. No obvious warnings of this behavior on the relevant help page or in discussions. Suggestions? (talkcontribs)

I'm also seeing this. shouldn't it populate the tree automaticly? (talkcontribs)

yes it should make the tree grow even tho right not my tree isnt growing

SmartK (talkcontribs)

We would also like to know if there is a "fix" for this. I have noticed that updates of pages and categories are shown in categorytree with a long time difference. Maybe we have to run some kind of job to update the database in the background? I can reproduce this with mediawiki 1.27.0.

Reply to "force categorytree to update when add new page."

Count is correct but only gray arrows are shown in sidebar

User71649 (talkcontribs)

Mediawiki 1.26.2

Try to get this working in my Sidebar using the default Vector skin.

The number of sub-pages and subcategories are correct but only a gray arrow is shown and so I can't traverse the category tree.

Interesting, for categories that have their own sub-categories, the arrow is completely gone!

Here are my  LocalSettings.php parameters:

$wgUseAjax = true;

require_once "$IP/extensions/CategoryTree/CategoryTree.php";

$wgCategoryTreeSidebarRoot = "Category:Sidebar";

$wgCategoryTreeSidebarOptions['showcount'] = true;

User71649 (talkcontribs)

I can confirm the problem exists in a fresh installation of MediaWiki 1.26.2 installed from the bitnami MAMPstack + MediaWiki. (talkcontribs)

I have the same problem with MediaWiki 1.26.2 and the last CategoryTree code from git

User71649 (talkcontribs)

I've reverted to Medaiwiki 1.23.13 and the problem is absent.

A little surprised that the 6th top download extension (according to Special:ExtensionDistributor) can be incompatible with the latest mediawiki version that is almost 5 months old now.

I think I'm going to stick to the LTS versions of mediawiki from now on. (talkcontribs)

Se the topic above. Replacing "$content.find" with "$" in ext.categoryTree.js (to places) seems to fix the problem in MediaWiki 1.26.

Reply to "Count is correct but only gray arrows are shown in sidebar"
NicolasEcarnot (talkcontribs)


Using MediaWiki 1.26.3 and CategoryTree 2016-01-09T22:52:17, I'm using it in the sidebar with $wgCategoryTreeSidebarRoot = "myRootCategory";

I'm quite happy with that but when clicking on the blue arrows, nothing is happening.

I read the doc and tried the workarounds, but to no avail.

I'm not using redirects or short URLs.

Our setup is very simple and common.

Is there something I could try?

Thanks for your help.

Mhausi (talkcontribs)

this works for me: fix sidebar in MW (talkcontribs)

Brilliant! Replacing "$content.find" with "$" in ext.categoryTree.js (to places) seems to work perfectly in MediaWiki 1.26 as well.

Will someone fix this in the CategoryTree distribution?

Reply to "Unable to expand arrows in sidebar"

Setting more than one attribute not working

Stoettner (talkcontribs)


when setting

<categorytree mode=pages hideprefix=always>Root</categorytree>

the result considers only the first attribute mode=pages.

What is the correct syntax for setting more than one attribute?

many thanks,


Kghbln (talkcontribs)

I can imaging that

<categorytree mode="pages" hideprefix="always">Root</categorytree>

might do the trick. Not tested this though. Perhaps one cannot add more that one option which would be sad. Did not use this so far.

Stoettner (talkcontribs)

Sadly not working. Instead using

$wgCategoryTreeOmitNamespace = true;

to globally disable NS rendering in categories. Can't believe that an extension with such broad usage is not allowing this.

Kghbln (talkcontribs)

Ah, yeah, this would have been too easy. I just saw on the docu that newer versions should probably use

$wgCategoryTreeDefaultOptions['hideprefix'] = true;

Not to mention that the docu is rather a disaster. :( Anyways, glad it works.

Well, if WMF does not have a usecase or sees the need the chances are pretty low that we will be getting something like this via the tag.

Reply to "Setting more than one attribute not working"

Insert CategoryTree right of Content?

AmazingTrans (talkcontribs)

How can i insert the categoryTree to the right of the Contents box? Also, can i encapsulate the categoryTree in a box like the Content? (talkcontribs)

yeah, just put it inside a div. so, surround the code calling for the category tree with something like

<div style="float:right; display:block; brackground-color:grey; border:1px solid black">

category tree coding


Meriware (talkcontribs)

Hrm. That appears to lose the toggles to contract / expand the tree.

Reply to "Insert CategoryTree right of Content?"