Changes for page Include Macro

Last modified by Admin on 2024/04/16 16:00

From version 33.12
edited by Zoom Hwang
on 2016/12/02 08:26
Change comment: Added comment
To version 34.1
edited by Vincent Massol
on 2016/12/03 09:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.hh
1 +xwiki:XWiki.VincentMassol
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -3,11 +3,17 @@
3 3  == Usage ==
4 4  
5 5  {{code}}
6 -{{include reference="SpaceOf.DocumentToInclude"/}}
6 +{{include reference="page1.page2.WebHome"/}}
7 7  {{/code}}
8 8  
9 -{{info}}If the target is a XWiki 1.0 syntax document, a converter is used from 1.0 to 2.0 syntax before parsing so it's possible the result will not be exactly the same that the classical 1.0 rendering{{/info}}
9 +{{warning}}
10 +With the [[Nested Pages>>platform:Features.ContentOrganization.WebHome]] feature introduction, the reference to pages now ends with ##WebHome## by default (except for Terminal Pages, but this concept is for advanced users). Thus don't forget to include ##WebHome## at the end of the reference.
10 10  
12 +In order to improve this, there are several actions that will be brought in the future:
13 +* [[Display reference of pages in the UI>>http://jira.xwiki.org/browse/XWIKI-13362]]
14 +* [[Allow omitting the ##WebHome## suffix in macros>>http://jira.xwiki.org/browse/XWIKI-13066]]
15 +{{/warning}}
16 +
11 11  === Parameters definition ===
12 12  
13 13  |=Name|=Optional|=Allowed values|=Default value|=Description
... ... @@ -32,4 +32,3 @@
32 32  {{/code}}
33 33  
34 34  NOTE: Be sure to include the / within the "/}} at the end, otherwise any content that comes after the included section on this page will fail to appear.
35 -
Show installed count
... ... @@ -1,0 +1,1 @@
1 +Yes
XWiki.XWikiComments[0]
Date
... ... @@ -1,1 +1,1 @@
1 -2016-12-02 08:26:28.442
1 +2016-12-02 08:26:28.0

Get Connected