Changes for page Rangee Index

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

From version 10.96
edited by Tobias Wintrich
on 2021/09/28 10:10
Change comment: There is no comment for this version
To version 10.99
edited by Tobias Wintrich
on 2021/09/28 10:11
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -34,7 +34,11 @@
34 34   <ul>
35 35   #foreach($rdoc2 in $results3)
36 36   #set($rdoc3 = $xwiki.getDocument($rdoc2).getTranslatedDocument())
37 - <li class="jstree-open">
37 + <li class="
38 + #if ($depth > 2)
39 + jstree-open
40 + #end
41 + ">
38 38   [[$rdoc3.getDisplayTitle()>>$rdoc3.fullName]]
39 39   </li>
40 40   #set($results4 = false)
... ... @@ -43,7 +43,11 @@
43 43   <ul>
44 44   #foreach($rdoc3 in $results4)
45 45   #set($rdoc4 = $xwiki.getDocument($rdoc3).getTranslatedDocument())
46 - <li class="jstree-open">
50 + <li class="
51 + #if ($depth > 3)
52 + jstree-open
53 + #end
54 + ">
47 47   [[$rdoc4.getDisplayTitle()>>$rdoc4.fullName]]
48 48   </li>
49 49   #set($results5 = false)
... ... @@ -52,7 +52,11 @@
52 52   <ul>
53 53   #foreach($rdoc4 in $results5)
54 54   #set($rdoc5 = $xwiki.getDocument($rdoc4).getTranslatedDocument())
55 - <li class="jstree-open">
63 + <li class="
64 + #if ($depth > 4)
65 + jstree-open
66 + #end
67 + ">
56 56   [[$rdoc5.getDisplayTitle()>>$rdoc5.fullName]]
57 57   </li>
58 58   #end
XWiki.WikiMacroParameterClass[0]
Parameter default value
... ... @@ -1,1 +1,1 @@
1 -100
1 +5
Parameter description
... ... @@ -1,1 +1,1 @@
1 -Öffne bis Ebene
1 +Öffne bis Ebene (5 max)