Changes for page Rangee Index

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

From version 12.18
edited by Tobias Wintrich
on 2021/09/28 11:48
Change comment: There is no comment for this version
To version 12.23
edited by Tobias Wintrich
on 2021/09/28 11:55
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -2,6 +2,7 @@
2 2  {{tree links="true" edges="false"}}
3 3  #set($depth = $wikimacro.parameters.depth)
4 4  {{html wiki=true}}
5 +$doc.getLanguage()
5 5  <ul>
6 6   #set($results = false)
7 7   #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc'))
... ... @@ -8,7 +8,7 @@
8 8   #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute())
9 9   #foreach($docname in $results)
10 10   #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
11 - <li class="$docname.getLanguage()
12 + <li class="$rdoc.getLanguage()
12 12   #if ($depth > 0)
13 13   jstree-open
14 14   #end
... ... @@ -17,7 +17,7 @@
17 17   </li>
18 18   #set($results2 = false)
19 19   #set($query2 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc'))
20 - #set($results2 = $query2.bindValue('doc', $docname).addFilter('currentlanguage').execute())
21 + #set($results2 = $query2.bindValue('doc', $docname).addFilter('currentlanguage').execute())
21 21   <ul>
22 22   #foreach($rdoc in $results2)
23 23   #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument())