Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 10.92
edited by Tobias Wintrich
on 2021/09/28 10:05
on 2021/09/28 10:05
Change comment:
There is no comment for this version
To version 10.96
edited by Tobias Wintrich
on 2021/09/28 10:10
on 2021/09/28 10:10
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,5 +1,6 @@ 1 1 {{velocity}} 2 2 {{tree links="true" edges="false"}} 3 +#set($depth = $wikimacro.parameters.depth) 3 3 {{html wiki=true}} 4 4 <ul> 5 5 #set($results = false) ... ... @@ -7,7 +7,11 @@ 7 7 #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 8 8 #foreach($docname in $results) 9 9 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) 10 - <li class="jstree-open"> 11 + <li class=" 12 + #if ($depth > 0) 13 + jstree-open 14 + #end 15 + "> 11 11 [[$rdoc.getDisplayTitle()>>$rdoc.fullName]] 12 12 </li> 13 13 #set($results2 = false) ... ... @@ -16,7 +16,11 @@ 16 16 <ul> 17 17 #foreach($rdoc in $results2) 18 18 #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument()) 19 - <li class="jstree-open"> 24 + <li class=" 25 + #if ($depth > 1) 26 + jstree-open 27 + #end 28 + "> 20 20 [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]] 21 21 </li> 22 22 #set($results3 = false)