Topic on Extension talk:CategoryTree

Setting more than one attribute not working

4
Stoettner (talkcontribs)

All,

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,

wiley

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"