Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 7.38
edited by Tobias Wintrich
on 2021/09/27 14:51
on 2021/09/27 14:51
Change comment:
There is no comment for this version
To version 7.34
edited by Tobias Wintrich
on 2021/09/27 14:48
on 2021/09/27 14:48
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,34 +1,25 @@ 1 -{{tree links="true"}} 1 +{{template name="RangeeDocumentTree_macros.vm" /}} 2 + 2 2 {{velocity}} 3 -{{html wiki=true}} 4 -<ul> 5 -#foreach ($child in $doc.getChildren()) 6 - <li class="jstree-open"> 7 - [[$child]] 8 - <ul> 9 - #foreach ($subchild in $xwiki.getDocument($child).getChildren()) 10 - <li class="jstree-open"> 11 - [[$subchild]] 12 - <ul> 13 - #foreach ($subsubchild in $xwiki.getDocument($subchild).getChildren()) 14 - <li class="jstree-open"> 15 - [[$subsubchild]] 16 - <ul> 17 - #foreach ($subsubsubchild in $xwiki.getDocument($subsubchild).getChildren()) 18 - <li class="jstree-open"> 19 - [[$subsubsubchild]] 20 - </li> 21 - #end 22 - </ul> 23 - </li> 24 - #end 25 - </ul> 26 - </li> 27 - #end 28 - </ul> 29 - </li> 4 +#set ($options = {}) 5 +#foreach ($parameterName in $xcontext.macro.params.parameterNames) 6 + #set ($discard = $options.put($parameterName, $xcontext.macro.params.get($parameterName))) 30 30 #end 31 -</ul> 8 +{{html clean="false"}} 9 +#prepareTreeOptions($options) 10 +#documentTree($options) 11 + 12 +{{tree}} 13 +#foreach ($child in $doc.children) 14 + * [[$child]] 15 + #foreach ($subchild in $child.children) 16 + ** [[$subchild]] 17 + #end 18 +#end 19 +{{/tree}} 20 + 21 + 32 32 {{/html}} 23 + 33 33 {{/velocity}} 34 - {{/tree}}25 +