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

Exclude first heading parameter of the include macro does not work when including a section

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      From what I understand from XWIKI-6721, this parameter should work to exclude both the first heading of an included document but also the title of an included section. However, it doesn't work for the section title.

      Steps to reproduce:

      • create a document with a title as the first item in the document, for example page Sandbox.A with the following content:
        = Here's some dummy text to show you what the page looks like =
        
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        
      • in another document, use the include macro to include the first (and only) section of this document, with the checkbox "exclude first header" checked:
        {{include reference="Sandbox.A" excludeFirstHeading="true" section="HHere27ssomedummytexttoshowyouwhatthepagelookslike"/}}
        

      Expected result:

      • only the content of the section is displayed in the including document, not the title

      Actual result:

      • the title of the section is also displayed in the including document, like this:

      Note: if the inclusion is done without the section parameter, the exclusion of the first header works.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: