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

Allow including a section with an id defined by the user

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.10
    • Fix Version/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The idea is to allow the user to use the id macro as follows:

      {{id name="my"/}}
      
      == My Heading ==
      

      And then use:

      {{include reference="..." section="my"/}}
      

      The rationale:

      • Hard to find the id
      • Not stable (if the heading title changes the include is broken)

      See https://extensions.xwiki.org/xwiki/bin/view/Extension/Include%20Macro?editor=inline#HParametersdefinition

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response: