Topic on Extension talk:CategoryTree

Suppress links to categories, only link to pages.

5
Pbsouthwood (talkcontribs)

On Wikivoyage we are using category trees to display related travel topic pages in articles. However, we would like to only display links to pages, we don't want the readers to link to sub-categories. We use mode=pages, but that only affects the bottom level, all the subcategory titles are displayed as links to the category namespace pages.

  • Is there a way to display the category names in the tree without links to the categories?
  • Ideally clicking on the category name would have the same effect as [+] or [-], but that would be a bonus.
Dennis J au (talkcontribs)

Your suggestion is almost identical to the suggestion I made last May. I 'dragged my post to a new location' (using the menu item under the 'More' menu) to place it directly under your post, to give both postings more emphasis.

Pbsouthwood (talkcontribs)

How long should one expect to wait for a response here?

Nemo bis (talkcontribs)

From one minute to one decade; it's the WikiNow.

Urfiner (talkcontribs)

I wrote a pretty stupid script to fix it. You should add it to Mediawiki:Common.js I am not a js developer so probably it is bad written but it works.

User:Urfiner#Fix category links

Reply to "Suppress links to categories, only link to pages."