Changes for page Rangee Index

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

From version 7.32
edited by Tobias Wintrich
on 2021/09/27 14:42
Change comment: There is no comment for this version
To version 7.39
edited by Tobias Wintrich
on 2021/09/27 14:53
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,30 +1,34 @@
1 -{{template name="RangeeDocumentTree_macros.vm" /}}
2 -
1 +{{tree links="true"}}
3 3  {{velocity}}
4 -#set ($options = {})
5 -#foreach ($parameterName in $xcontext.macro.params.parameterNames)
6 - #set ($discard = $options.put($parameterName, $xcontext.macro.params.get($parameterName)))
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>
7 7  #end
8 -{{html clean="false"}}
9 -#prepareTreeOptions($options)
10 -#documentTree($options)
11 -
12 -<input id="spinner">
13 -
14 -<script type='text/javascript'>
15 -require(['jquery',"$services.webjars.url('jquery-ui', 'jquery-ui.js')"], function($) {
16 - require(['jstree',"https://kb.rangee.com/webjars/wiki%3Axwiki/jstree/3.3.8/jstree.min.js"], function($) {
17 - $('treeeee').on('ready.jstree', function() {
18 - $("treeeee").jstree("open_all");
19 - });
20 -});
21 -
22 -});
23 -
24 -
25 -</script>
26 -
31 +</ul>
27 27  {{/html}}
28 -
29 29  {{/velocity}}
30 -
34 +{{/tree}}
Macro id
... ... @@ -1,1 +1,1 @@
1 -RangeeDocumentTree
1 +Rangee Index
Macro name
... ... @@ -1,1 +1,1 @@
1 -Rangee Document Tree
1 +Rangee Index
Macro visibility
... ... @@ -1,1 +1,1 @@
1 -Current Wiki
1 +Global