Changes for page Rangee Index

Last modified by Tobias Wintrich on 2025/06/04 09:20

From version 9.1
edited by Tobias Wintrich
on 2021/09/27 14:58
Change comment: There is no comment for this version
To version 9.14
edited by Tobias Wintrich
on 2021/09/27 21:04
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,34 +1,14 @@
1 -{{tree links="true"}}
1 +{{tree links="true" icons="false" edges="false"}}
2 2  {{velocity}}
3 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>
30 -#end
31 -</ul>
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 +
32 32  {{/html}}
33 33  {{/velocity}}
34 34  {{/tree}}