Details
-
New Feature
-
Resolution: Unresolved
-
Major
-
None
-
7.4
-
None
-
Unknown
-
Description
Over the years there have been several users asking for a TOC Panel. Until XWIKI-13734 it wasn't possible to make one easily.
Now a quickl implementation is:
{{velocity}} #panelheader('Table of Contents') {{context document="$services.model.serialize($doc.documentReference)" transformationContext="document"}} {{toc/}} {{/context}} #panelfooter() {{/velocity}}
Note that an improvement would be to either not display the panel when there's no headings or display a message such as "No headings in current document!".
Attachments
Issue Links
- is related to
-
XRENDERING-345 Add an Auto TOC transformation to automatically add a TOC when pages are rendered
- In Progress
- relates to
-
XWIKI-14736 Display/generate the table of contents for any document while reading
- Open