Changes for page Children Macro

Last modified by Käthe von Hai on 2026/08/13 06:52

From version 2.1
edited by support
on 2026/02/24 03:45
Change comment: Replaced user [xwiki:XWiki.echo] in fields [author, contentAuthor] to user [xwiki:XWiki.support]
To version 4.1
edited by Käthe von Hai
on 2026/08/13 06:52
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/17.10.12]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.support
1 +XWiki.echo
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -2,7 +2,7 @@
2 2  ## Escape special characters in the macro parameter value.
3 3  #set ($sort = $xcontext.macro.params.sort.replaceAll('([~"])', '~$1'))
4 4  #if ("$!xcontext.macro.params.root" != '')
5 - #set ($root = $xcontext.macro.params.root)
5 + #set ($root = $xcontext.macro.params.root.replaceAll('([~"])', '~$1'))
6 6  #else
7 7   #set ($root = 'document:')
8 8  #end