Hi Devs,
Context
I was trying to clean some jira issues and we have several related to the concept of having some kind of auto toc in XWiki (ie an automatically-generated TOC somewhere, for each page, without needing to manually insert the TOC macro).
This thread is basically a respawn of Auto TOC in XWiki? (first try) but asked a bit differently.
Decisions
I’d like us to decide what we’d like to do and close the jira issues we don’t want to implement. I’ve listed several points below and am interested in your opinion for each line.
- Do we need this feature in XWiki or is the manual TOC enough? ie should we close Loading... as won’t fix or not.
Assuming we want an auto toc in XWiki:
-
Should we provide it as a rendering transformation (with some configuration option similar to heading numbering to turn on/off), ie should we close Loading... as won’t fix or not.
-
Should we provide it as tree nodes inside the Document Tree macro (for perf reason, it would always be folded and when the user clicks an arrow to open it, leaf entries are generated for each heading. Note: we would need to render the document to have perfect results. Since the Navigation tree panel is visible on all pages, it would provide a way to quickly navigate to headings in documents.
-
Should we provide it as a TOC Panel, ie should we close Loading... as won’t fix or not?
-
Should we provide a UIXP somewhere (example in the following screenshot), folded by default and when clicked, it would display the TOC for the page:
- Any other option?
So WDYT?
My answers
-
I don’t remember being asked recently about such a feature so I’m tempted to say that we don’t want it in XWiki. Ofc everyone is free to do it in a contrib extension and we could even provide some new UIXP if one is missing. This means that I’d be in favor of closing all 3 jira issues referenced above as won’t fix.
-
No
-
Maybe, but I have a preference for 5 (which is located inside the page content and doesn’t require a new rendering)
-
No
-
Yes
Thanks