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

Ability to skip some headings in the TOC

    XMLWordPrintable

Details

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

    Description

      One idea would be to use a rendering parameter on HeadingBlock to tell the TOC macro to not include this heading. See also NBREF-12 which introduced the data-xwiki-rendering-protected parameter to tell the Numbered Reference Extension to skip numbering a heading.

      Either reuse this same parameter name or introduce a new one (and probably refactoring data-xwiki-rendering-protected too since it feels too generic). It seems the 2 use cases are different (both about rendering):

      • skipping numbering
      • skipping being in the TOC

      If we have only one then it means we couldn't skip numbering and still keep the heading in the TOC at the same time. That feels like a valid use case to me. WDYT?

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: