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

Provide a TOC Panel

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 7.4
    • Panels
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated: