Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-671

Add a "title" parameter to the TOC macro

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Macro - Toc
    • None
    • Unknown

    Description

      Adding a title to a table of contents (TOC) currently requires wrapping the TOC in a Box like on this example. The new title parameter will allow to insert a heading in the TOC macro  directly.

      The TOC macro should then use the provided heading as an aria-label or reference the heading using aria-labelledby, with a fallback to a predefined value of the aria-label attribute when the heading is empty, as proposed by MichaelHamann in this discussion.

      The TOC heading id should be unique since there can be several TOCs in a page, eg using the XDOM id generator.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              slauriere slauriere
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: