Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13750

Provide a TOC Panel

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.4
    • Fix Version/s: None
    • Component/s: Panels
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              vmassol Vincent Massol
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response: