Open main menu

Extension talk:CategoryTree

About this board

Archives 

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

216.17.31.166 (talkcontribs)

Are there options to control how the tree is sorted? Ideally I'd like to be able to have the subcategories and articles sorted together instead of first subcategories and then articles, but I'm also curious what other options are available that might be interesting. If none are available, could this feature be added?

Jonathan3 (talkcontribs)

When assigning pages to categories you can add a sort key, e.g. [[Category:categoryname|sortkey]] Jonathan3 (talk) 13:31, 5 April 2019 (UTC)

Reply to "Sorting options"
Johnywhy (talkcontribs)

the tree still shows deleted pages.

Johnywhy (talkcontribs)

Tree shows old version of renamed page.

Any fix?

thx

Urfiner (talkcontribs)

Try turn off cache with

$wgCategoryTreeDisableCache = true;

IF that doesn't work, check that solution to turn off web cache: User:Urfiner#Remove_cache

Reply to "How to force refresh?"
80.146.191.156 (talkcontribs)

In mobile view (via Extension MobileFrontend) the collapse and expand bullets are not shown ... only the empty-bullet (grey) is visible.

is there any posibility to get this working?

Ciencia Al Poder (talkcontribs)
2003:C3:F12:1CE4:9D66:8822:802:D82E (talkcontribs)

oh - okay --- we use MW 1.27.5 at the moment ... so we have to wait until we plan and do an update :)

Reply to "CategoryTree and MobileFrontend"

Can't replace the toggle button pictures/signs

7
80.146.191.156 (talkcontribs)

The replacement doesnt work in MW 1.27 - it works only "on load" - after click on the image (for toggle) the other bullet isn't shown. it displays the given wiki code for the other bullet - like with "nowiki" tags around it - on the page. And then the toggle back (after clicking on this "textlink") still shows the code and doesn't display the first bullet again ...

Tacsipacsi (talkcontribs)

Could you clarify the problem? Some screenshots would certainly help. (You can upload them to a free image share website if you don’t want to sign up on MediaWiki.org.)

80.146.191.220 (talkcontribs)

No solution yet ... we try the latest master-branch in some minutes ... maybe this will work?! i will give a report here after that ...

80.146.191.220 (talkcontribs)

okay, the latest master-branch needs MW 1.29 at least ... so it doesn't work with MW 1.27

We try now the Extension Version for MW1.25 ... other users say that the problems with the collapse/expand pictures came with 1.26 ...

Telechick (talkcontribs)

Extension Snapshot 1.25 also doesn't work ... with MW 1.27 ...

Telechick (talkcontribs)

here i have some screenshots which shows the initial page, the "bad" design at toggle and the also bad design after toggle back at two examples ...

80.146.191.156 (talkcontribs)

solved - i changed ".text" for collapse and expand node in ext.categoryTree.js to ".html" ... now it shows my images correctly ...

Reply to "Can't replace the toggle button pictures/signs"

Customized collapse/expand/empty images broken after update

5
Rbirmann (talkcontribs)

Hi,

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

12.156.206.58 (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 post 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...

80.146.191.156 (talkcontribs)

Is there any solution to display some images instead of the triangles in MW 1.27 or newer? Can someone give some instructions. Thanks Gerd

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

Download list of subcategories without explicit implementation?

2
137.44.100.2 (talkcontribs)

Hi, I apologise if this may sound silly but I have just come across this category tree which seems very handy but I need just lists of categories and subcategories (like an xml/ json file) as opposed to a visual API of the tree. I realise I could use this API and gradually construct my own list but would ideally like to not have to spend time implementing this if there is a faster route.

I have also come across pywikibot which is suggested below for downloading pages with specific categories, but I am needing to download a lot of pages that fall under the categories "science" and "technology" so a bot is not the best option (I am currently working with the wikidump data: enwiki-20170820-pages-meta-current.xml.bz2 (25.86gb))

IkonAlex (talkcontribs)

I have the same task, have you succeed in the your question?

Reply to "Download list of subcategories without explicit implementation?"

Split a long list into Multi-Column Lists

4
Samuel Goujon (talkcontribs)

Hi all,

Would it be possible to split a long list into multiple horizontal columns?

For example, every 50 categories, a new list is created on the right (keeping the alphabetical order)

Thanks for your help!

Cmjohannes (talkcontribs)

I would also like to know if this functionality is possible. I have a category with 300 member pages, which I would like to display on my main page. Currently, the CategoryTree extension displays one page per line. I would like to use a four or five column table to improve site aesthetics and make the list more readable.

Something like:

<table>

<tr><td>Page A</td><td>Page B</td><td>Page C</td><td>Page D</td></tr>

<tr><td>Page E</td><td>Page F</td><td>Page G</td><td>Page H</td></tr>

</table>

Where/how could/should such display output be implemented?

5.29.23.15 (talkcontribs)

Use template:columns from wikipedia. Just put the categorytree inside the template:columns.

2001:A61:51DC:AA00:341C:D807:FF72:F043 (talkcontribs)

You could use <categorytree style="column-count:5;-moz-column-count:5;-webkit-column-count:5"> CategoryXY </categorytree>

Reply to "Split a long list into Multi-Column Lists"

could we change "►" as "+" sign and "▼" as "-" sign?

6
Summary by Alexandroslee

已經解決

Alexandroslee (talkcontribs)

could we change "►" as "+" sign and "▼" as "-" sign?

use unicode or utf8 the define "►" and "▼" ?

Alexandroslee (talkcontribs)

read this but please telling me how to do ( modify which file ? )

https://www.mediawiki.org/wiki/User:CoolCornucopia#Tips:_Change_collapse/expand/empty_images_in_the_CategoryTree

User:CoolCornucopia#Tips: Change collapse/expand/empty images in the CategoryTree

Tips: Change collapse/expand/empty images in the CategoryTree

MediaWiki:categorytree-collapse-bullet

4 5 9 10 <![if !IE]> 11 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9QTFRFeXl53d3dmpqasbG 12 x////GU0iEgAAAAV0Uk5T/////wD7tg5TAAAAK0lEQVQI12NwgQIG0hhCDAwMTCJAhqMCA4MiWEoIJABiOCooQhULi5BqMgB2bh4svs8t+QAAAABJRU5ErkJggg==" width="16" height="16""/> 13 <![endif]>


MediaWiki:categorytree-expand-bullet

4 5 9 10 <![if !IE]> 11 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF3d3deXl5////nZ2 12 dQA6SoAAAAAN0Uk5T//8A18oNQQAAADNJREFUeNpiYEIDDMQKMKALMDOgCTDCRWACcBG4AEwEIcDITEAFuhnotmC4g4EEzwEEGAADqgHmQSPJKgAAAABJRU5ErkJggg==" width="16" height="16"/> 13 <![endif]>


MediaWiki:categorytree-empty-bullet

4 5 10 11 <![if !IE]> 12 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAAAXNSR0IArs4c6QAAAAxQTFRFeXl53d3dmpqasbGxwe9qYQAAAAF0Uk5TAE 13 Dm2GYAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3AQaDSEvTJrcJgAAA 14 AxJREFUCNdjYKAuAAAAUAABIhPodQAAAABJRU5ErkJggg==" alt="[x]" width="16" height="16"/> 15 <![endif]>

Alexandroslee (talkcontribs)

MediaWiki:categorytree-empty-bullet

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAErSURBVDhP7ZRNTsMwEIWfbZRQtQkXQIJVOQnskIrKDSoWFXfICrgiG7gBP01iGie2Y8ZuQUXKIpAVUj9rMtbYeTPJ4rEif3HjyRj5KgdjDH8lTRO0ToDpRrrzi0tMp2ewrd0e94fRqqoKpyfHuLt/AJ6fHl2WZc7TWuWsWf8qHL3jmc2uQuYEtDGwpoKUH2DikNrGvYKLEYpS0pwNhBBhYh6eW/wf9J/gm/SJLrqrA9gLDmcvOJx/Ivjtgjt2SMbxI77oqu3C/YExFuJghAkZrVI5VLUi7YYMV1OuQzZaolYF7X19E3A10qOUZCLyRBUEmbVrt1jc4u31HaUskSQpXQa0NiSgyKJ4mCaO49CYVGCtDbUoikLNaI3l8gbz67kXNGSKGy8binMtPgGY9M3PJissMgAAAABJRU5ErkJggg==" alt="" />

Alexandroslee (talkcontribs)

MediaWiki:categorytree-collapse-bullet

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAZiS0dEAAAAAAAA+UO7fwAAAAl2cEFnAAACWAAAAlYAjfUIBgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxMC0xMi0wM1QyMDozMjoxMC0wNTowMBM2t6oAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTAtMTItMDNUMjA6MzI6MTAtMDU6MDBiaw8WAAABsUlEQVQ4T+1TTW/UMBB94zhK2e6FItoeOCAO/CIO/BjEP4A7EhL8A34MRRw5AIsqito0H042sc0be7sCBHthT4j3NIntjCfPM2OJBPYIs3nvDf8D/j1Slc/rc7i5hxZ8nEeIGIQQUNkKhRQQOmovGK7r2AePmaZz9ZmwxoEc4OToFPLs7fN4cu8US7vE5Cd4oTPptwyYZeamGX3kT3VOi+QkE5qiRSst3q3f4+HHB5BXH17H7v5ABero0UkP5UA6WsfxFdly1PCpvESd6HBNvWs9KWFQvClhgg/J6VNc4TNW+BovcBmvtlbHGkMYMYY1pqA6PY8tsCj5rBjokLYE5lsIFGVc0P80aChbVWQNXVKW6dBTtVNKVp3p0vG3kIAj3Iap7TXFN9k52fjTeEhzmslrN6mYSEbZGFEIjLWQJ2dP44v2JYYLl6oXNOEFU16wmibAR+bI+LxPb71auXkrtPFUKE/9yD7ObfPl2wouOizsAlVRwUqJYaYK5kxE0E8dFuUhnbV12EY3wX4E1+7eOc4BN0t7wT92l/V2KHdhZ8Dfbdam3oWdRUkBf/mqVf8zgO+7gBCePjBGDQAAAABJRU5ErkJggg==" alt="" />

Alexandroslee (talkcontribs)

MediaWiki:categorytree-expand-bullet

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACHDwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAEjHnZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15FYZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZEsRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTsAIABHmCAKQBMVka6X7B7CBDJy82FniFyAl8EAfB6WLwCcNPQM4BOB/+fpFnpfIHomAARm7M5GSwRF4g4JUuQLrbPipgalyxmGCVmvihBEcuJOWGRDT77LLKjmNmpPLaIxTmns1PZYu4V8bZMIUfEiK+ICzO5nCwR3xKxRoowlSviN+LYVA4zAwAUSWwXcFiJIjYRMYkfEuQi4uUA4EgJX3HcVyzgZAvEl3JJS8/hcxM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XowZ1nun+x1YTTOq/7x8kI/NHr4ZnfwtXTdUip8PbbEE9ut9FoX1h4HJa9aI+UyFL0ZwpbowgfBjFGcYFCpIvVo2UE2paFYZxhGOXYizKMQgHHNm4xA1kR7Ic53EjAJWwSZjiBZwYyQIwJ8RhhEOeImbJtc9KgP4A5oASNbdmHQp1jkUjWskA4STDseHDqUnuX6wd2IH3LwnOx+dHDRquGPOeGgk4FQeRu7Rb4/N2HYA0vNU9hY9WG5JoShW4dPpLXW7sYP78Lq9GugJ2fHdz7VMeaJVFkEpIRgWBvkmJvEEKlhTabELrALjjmaZJjRb/xToTtp7dw88Z6lbKUEulcYMrie1EKPxboDiIMeiFQwhdWpp7MUkT0icLfbcI1pkJGKQ1cPVNDQNgkVpjGICxBr58g4htUSRWdjoYWBAUiL0PsCcynAgkN0xDX1toaWP0UJfHy3XskmdAnCKZRc2zsez4evVrGWatKzw9mePGQ1XDOcQsjYqnLH9Rs1LB5/06JM3+9br+Ly4+3sdTkmUIiGE6h3jxgXksLj8MyvsNU105UN1rWia2+eoOMQC1Cy3RlXsJoTMukvwDmOkINKyM288xAFph/z0c8zjCjwQ04aSYaL0XJAu7gC77ujMsR1q+sYHnlOpnHQ43AfxfwC1TbkG75lI7IAAAAAElFTkSuQmCC" alt="" />

Alexandroslee (talkcontribs)

such like this how can I do ?

MediaWiki:categorytree-empty-bullet

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAErSURBVDhP7ZRNTsMwEIWfbZRQtQkXQIJVOQnskIrKDSoWFXfICrgiG7gBP01iGie2Y8ZuQUXKIpAVUj9rMtbYeTPJ4rEif3HjyRj5KgdjDH8lTRO0ToDpRrrzi0tMp2ewrd0e94fRqqoKpyfHuLt/AJ6fHl2WZc7TWuWsWf8qHL3jmc2uQuYEtDGwpoKUH2DikNrGvYKLEYpS0pwN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eiFQwhdWpp7MUkT0icLfbcI1pkJGKQ1cPVNDQNgkVpjGICxBr58g4htUSRWdjoYWBAUiL0PsCcynAgkN0xDX1toaWP0UJfHy3XskmdAnCKZRc2zsez4evVrGWatKzw9mePGQ1XDOcQsjYqnLH9Rs1LB5/06JM3+9br+Ly4+3sdTkmUIiGE6h3jxgXksLj8MyvsNU105UN1rWia2+eoOMQC1Cy3RlXsJoTMukvwDmOkINKyM288xAFph/z0c8zjCjwQ04aSYaL0XJAu7gC77ujMsR1q+sYHnlOpnHQ43AfxfwC1TbkG75lI7IAAAAAElFTkSuQmCC

How to define the tree node? ( Rookie stupid problem )

17
Summary by Alexandroslee

Thanks a lot, I got it!

Alexandroslee (talkcontribs)

Hi,

I don't know how to define the tree node?

I had install Extension:CategoryTree https://www.mediawiki.org/wiki/Extension:CategoryTree

and had activated

but I don's know how to define the tree node ?

such as

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

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

means I would create a page abc this a tree node

and I

<categorytree mode="categories">xyz</categorytree> this is parent node?

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

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

Please help me

this is a Rookie stupid problem

-- Alexandroslee (talk) 07:41, 14 August 2018 (UTC)

Alexandroslee (talkcontribs)

copy the code and I creat a category Manual

<categorytree mode="Category" style="float:right; clear:right; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;">Manual</categorytree>

but won't work?!

Alexandroslee (talkcontribs)

I had create a Category:Manual

the content like this

[[category:AAA]]
[[category:BBB]]
[[category:CCC]]

BUT WON'T WORK

Tacsipacsi (talkcontribs)

Could you please share more details? What does “not working” mean? There is no output? You get some error message? The raw wikitext is displayed? Something else? Have you verified that the extension is installed (i.e. it shows up on Special:Version)? Can you share an exact URL where the problem occurs (if the wiki is public)?

Alexandroslee (talkcontribs)

I am useing version 1.26.3

I had successfully use to show the tree,

But how could I use the "custom tag " ?

Alexandroslee (talkcontribs)

Would you mind providing some examples for

The {{#categorytree}} parser function and

The Special:CategoryTree page for me?

I try to control the sequence of the tree items

Alexandroslee (talkcontribs)

and I can't hide the prefix

<categorytree mode="all" hideprefix="always">Job:jobcategory</categorytree>

but won't work !

please help!

Alexandroslee (talkcontribs)

now I use the wiki category , and I try the namespace ( such as "Job:FEE" )

and I wish I could hide the Job (prefix ? ) only left "FEE"

how should I do?

Alexandroslee (talkcontribs)

I am useing zh-tw and the syntax seem change to traditional Chinese

it make me very Confuse

suck as the category been to "分類" so I have to add the category like 分類:jobcategory

but when I try to create the namespace like "jobs" and the category like 分類:jobs:jobcategory

and when I setup the category tree like

<categorytree mode="all" hideprefix="always">Job:jobcategory</categorytree>

but the prefix "jobs" still show at each item !

I am frustrated , please help, Tanks a lot!

Alexandroslee (talkcontribs)

I try the Category:Manual

and the sub is Manual:Contents

that meas the namespace is a Category

so I have to set a Category such as "jobs"

then I create jobs:FEE and jobs:BED and jobs:FED

the put the

in each page jobs:FEE and jobs:BED and jobs:FED

then how can I use the category tree and hide the prefix "jobs"

that is my question

Alexandroslee (talkcontribs)

I use the mode="all' and expected the pages is show off

but only categoris show !

what's worng I made?

Alexandroslee (talkcontribs)

so I would like to know

how to

as a "custom tag" (or "parser function") to show a category structure in-line on a wiki page,

or

and as a special page.

Is there some examples ?

Tacsipacsi (talkcontribs)

Your messages are a bit messy for me, I answer what I understand:

  • Items are ordered by type (category, page, file, in this order), and by sort key within each type. This behavior cannot be changed, but the sort keys can be, of course.
  • hideprefix hides namespace prefix. For Category:Jobs:Jobcategory it’s Category:. For Jobs:Jobcategory it may be Jobs: if it’s a real namespace registered in MediaWiki, or nothing otherwise. Pages can’t have more than one namespace, so a category’s namespace will always be Category.
  • mode=all should show all pages in the category, i.e. the ones that show up in the category listing (not the ones that are manually linked from the category page). If it’s not the case, you’ve found a bug.
  • <categorytree> is a custom tag which shows a category structure on a wiki page, and Special:CategoryTree is a special page. Why aren’t they good?
Alexandroslee (talkcontribs)

Thank you very much ! I had show the category tree now, but only the order

how about the " sort keys " you mention ?

Alexandroslee (talkcontribs)

Thanks , now I got the meaning of Special:CategoryTree is a special page,

cause I think maybe I could edit the special page to defind the items and order

Tacsipacsi (talkcontribs)
Alexandroslee (talkcontribs)

Thanks a lot, I got it and done!

List page in category only if its not already listed in another category

1
Kaziekama (talkcontribs)

Say I have a page tagged with two categories, AAA and BBB, is there a way to not show the page in a categorytree for AAA if it is also tagged in BBB? Or is there another way to categorize pages with multiple categories?

Reply to "List page in category only if its not already listed in another category"
Return to "CategoryTree" page.