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.5
edited by Tobias Wintrich
on 2021/09/28 10:17
on 2021/09/28 10:17
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Context elements
-
... ... @@ -1,1 +1,0 @@ 1 -Sprache - Macro code
-
... ... @@ -1,16 +1,14 @@ 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 ... ... @@ -23,7 +23,7 @@ 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 ... ... @@ -81,5 +81,5 @@ 81 81 </ul> 82 82 83 83 {{/html}} 84 - ##{{/tree}}82 +{{/tree}} 85 85 {{/velocity}}