Changes for page Rangee Index

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

From version 12.17
edited by Tobias Wintrich
on 2021/09/28 11:47
Change comment: There is no comment for this version
To version 12.11
edited by Tobias Wintrich
on 2021/09/28 10:31
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -13,7 +13,7 @@
13 13   jstree-open
14 14   #end
15 15   ">
16 - [[$rdoc.getDisplayTitle()>>$rdoc.fullName $rdoc.getLanguage()]]
16 + [[$rdoc.getDisplayTitle()>>$rdoc.fullName]]
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,13 +20,13 @@
20 20   #set($results2 = $query2.bindValue('doc', $docname).addFilter('currentlanguage').execute())
21 21   <ul>
22 22   #foreach($rdoc in $results2)
23 - #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument())
23 + #set($rdoc2 = $xwiki.getDocument($rdoc))
24 24   <li class="
25 25   #if ($depth > 1)
26 26   jstree-open
27 27   #end
28 28   ">
29 - [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName $rdoc.getLanguage()]]
29 + [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]]
30 30   </li>
31 31   #set($results3 = false)
32 32   #set($query3 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc'))
... ... @@ -33,7 +33,7 @@
33 33   #set($results3 = $query3.bindValue('doc', $rdoc).addFilter('currentlanguage').execute())
34 34   <ul>
35 35   #foreach($rdoc2 in $results3)
36 - #set($rdoc3 = $xwiki.getDocument($rdoc2).getTranslatedDocument())
36 + #set($rdoc3 = $xwiki.getDocument($rdoc2))
37 37   <li class="
38 38   #if ($depth > 2)
39 39   jstree-open