Changes for page Rangee Index

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

From version 7.18
edited by Tobias Wintrich
on 2021/09/24 16:55
Change comment: There is no comment for this version
To version 7.36
edited by Tobias Wintrich
on 2021/09/27 14:50
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -9,19 +9,18 @@
9 9  #prepareTreeOptions($options)
10 10  #documentTree($options)
11 11  
12 -<script type='text/javascript'>
13 -require(['jquery',"$services.webjars.url('jquery-ui', 'jquery-ui.js')"], function($) {
14 - $( "#spinner" ).spinner();
15 -});
16 -document.addEventListener('DOMContentLoaded', function() {
17 - document.getElementById("treeeee").jstree("open_all")
18 - })
19 -}, false);
12 +{{/html}}
20 20  
14 +{{tree}}
15 +#foreach ($child in $doc.children)
16 + * [[$child]]
17 + #set ($childDoc = $xwiki.getDocument($child))
18 + #foreach ($subchild in $childDoc.children)
19 + ** [[$subchild]]
20 + #end
21 +#end
22 +{{/tree}}
21 21  
22 -</script>
23 23  
24 -{{/html}}
25 -
26 26  {{/velocity}}
27 27