Changes for page Children Macro

From version 6.1
edited by Monika Leung
on 2026/04/03 13:41
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/18.2.0]
To version 2.1
edited by Monika Leung
on 2025/04/05 16:12
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/17.2.0]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,10 +1,5 @@
1 1  {{velocity}}
2 2  ## Escape special characters in the macro parameter value.
3 3  #set ($sort = $xcontext.macro.params.sort.replaceAll('([~"])', '~$1'))
4 -#if ("$!xcontext.macro.params.root" != '')
5 - #set ($root = $xcontext.macro.params.root)
6 -#else
7 - #set ($root = 'document:')
8 -#end
9 -{{documentTree root="$root" sortDocumentsBy="$!sort" /}}
4 +{{documentTree root="document:" sortDocumentsBy="$!sort" /}}
10 10  {{/velocity}}
XWiki.WikiMacroParameterClass[1]
Parameter description
... ... @@ -1,1 +1,0 @@
1 -The root node id. This is useful if you want to display only the descendants of a given node (which is the specified root). The tree displays the children of the root node on the first level, so the root node is not actually displayed. The entire tree is displayed if the root node is not specified. The format of a node identifier is entityType:entityReference, where the entity type can be for instance wiki, space, document. E.g.: wiki:xwiki, space:xwiki:Main, document:xwiki:Main.WebHome
Parameter mandatory
... ... @@ -1,1 +1,0 @@
1 -No
Parameter name
... ... @@ -1,1 +1,0 @@
1 -root
Parameter type
... ... @@ -1,1 +1,0 @@
1 -org.xwiki.tree.EntityTreeNode

Interested in our testing services?

If you are interested and would like to receive more information, please send us an email and sign up for our newsletter to stay up-to-date.