Topic on Project:Support desk

Jump to navigation Jump to search

Showing a complete table of contents (categories and pages)

Grmblfx5 (talkcontribs)


on my wiki pages, I used the extension "NiceCategoryList2" to get a complete TOC on my starting page, as you can see here:

Unfortunately, the extension isn't maintained anymore, so I need an alternative after updating.

I tried "categorytree" and "DynamicPageList3" but wasn't able to get the same result (categories as headings, subpages as links).

For "DynamicPageList3" I studied the manual but didn't find a support page or forum to ask.

Can anyone tell me if or how I can get a complete table of contents on a wiki-page?

Thank you!

Jonathan3 (talkcontribs)

I'm pretty certain this would be possible with DPL3 - I need to do something similar and if I manage it I'll add a message here.

Jonathan3 (talkcontribs)

Just read your comments on your other topic. It's definitely possible to use recursion in DPL3 to display the category/page structure from a named top category (or alternatively to use separate sub-templates/queries for whatever level you want to go down to). I've got this working but it is similar to CategoryTree in that it displays the categories as links too, which is not what you want. I hope it will be possible to add some sort of "if" statement in the middle of the DPL3 query to show the categories as text (maybe even headings) rather than links. Maybe wishful thinking. (talkcontribs)

Hi Jonathan,

thank you for your encouragement. I'm also quite sure that it must be possible, but didn't get it working so far. I tried different statements, but only the pages of the top category are shown in a rather unclear way. If you can manage it, I would be very happy for a solution.

Unfortunately, there's no support from the authors or other users of the extension, at least I couldn't find one. (talkcontribs)

...and can you post/show me your query using recursion?

Jonathan3 (talkcontribs)
Reply to "Showing a complete table of contents (categories and pages)"