Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 12.26
edited by Tobias Wintrich
on 2021/09/28 11:56
on 2021/09/28 11:56
Change comment:
There is no comment for this version
To version 11.10
edited by Tobias Wintrich
on 2021/09/28 10:22
on 2021/09/28 10:22
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,20 +1,18 @@ 1 1 {{velocity}} 2 - ##{{tree links="true" edges="false"}}2 +{{tree links="true" edges="false"}} 3 3 #set($depth = $wikimacro.parameters.depth) 4 4 {{html wiki=true}} 5 -language 6 -$doc.getLanguage() 7 7 <ul> 8 8 #set($results = false) 9 9 #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc')) 10 - #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 8 + #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 11 11 #foreach($docname in $results) 12 12 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) 13 - <li class=" $rdoc.getLanguage()11 + <li class=" 14 14 #if ($depth > 0) 15 15 jstree-open 16 16 #end 17 - "> 15 + ">$depth 18 18 [[$rdoc.getDisplayTitle()>>$rdoc.fullName]] 19 19 </li> 20 20 #set($results2 = false) ... ... @@ -23,11 +23,11 @@ 23 23 <ul> 24 24 #foreach($rdoc in $results2) 25 25 #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument()) 26 - <li class=" $rdoc.getLanguage()24 + <li class=" 27 27 #if ($depth > 1) 28 28 jstree-open 29 29 #end 30 - "> 28 + ">$depth 31 31 [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]] 32 32 </li> 33 33 #set($results3 = false) ... ... @@ -40,7 +40,7 @@ 40 40 #if ($depth > 2) 41 41 jstree-open 42 42 #end 43 - "> 41 + ">$depth 44 44 [[$rdoc3.getDisplayTitle()>>$rdoc3.fullName]] 45 45 </li> 46 46 #set($results4 = false) ... ... @@ -81,5 +81,5 @@ 81 81 </ul> 82 82 83 83 {{/html}} 84 - ##{{/tree}}82 +{{/tree}} 85 85 {{/velocity}}