Changes for page Rangee Index

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

From version 12.24
edited by Tobias Wintrich
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
Change comment: There is no comment for this version

Summary

Details

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