Details
-
Bug
-
Resolution: Fixed
-
Major
-
12.6.5
-
None
-
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:
Note: if the inclusion is done without the section parameter, the exclusion of the first header works.
Attachments
Issue Links
- relates to
-
XWIKI-18687 The first heading is only partially excluded and transformed into content on Include/Display Macro when including a section
- Open