Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 9.14
edited by Tobias Wintrich
on 2021/09/27 21:04
on 2021/09/27 21:04
Change comment:
There is no comment for this version
To version 9.6
edited by Tobias Wintrich
on 2021/09/27 15:12
on 2021/09/27 15:12
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,14 +1,34 @@ 1 1 {{tree links="true" icons="false" edges="false"}} 2 2 {{velocity}} 3 3 {{html wiki=true}} 4 -#set($query="where doc.fullName='Handbücher.10\.00.Admin Guide 10\.00.WebHome'") 5 - #set($results = false) 6 - #set($results = $xwiki.searchDocuments($query, 10, 0)) 7 - #foreach($docname in $results) 8 - [[$xwiki.getDocument($docname).getTranslatedDocument()]] 9 - hu 10 - #end 11 - 4 +<ul> 5 +#foreach ($child in $doc.getChildrenReferences()) 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> 30 +#end 31 +</ul> 12 12 {{/html}} 13 13 {{/velocity}} 14 14 {{/tree}}