Changes for page Rangee Index

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

From version 12.38
edited by Tobias Wintrich
on 2021/09/28 12:21
Change comment: There is no comment for this version
To version 12.39
edited by Tobias Wintrich
on 2021/09/28 12:21
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -59,6 +59,7 @@
59 59   <ul>
60 60   #foreach($rdoc3 in $results4)
61 61   #set($rdoc4 = $xwiki.getDocument($rdoc3).getTranslatedDocument())
62 + #if ($locale == $rdoc4.getLanguage())
62 62   <li class="
63 63   #if ($depth > 3)
64 64   jstree-open
... ... @@ -66,6 +66,7 @@
66 66   ">
67 67   [[$rdoc4.getDisplayTitle()>>$rdoc4.fullName]]
68 68   </li>
70 + #end
69 69   #set($results5 = false)
70 70   #set($query5 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc'))
71 71   #set($results5 = $query3.bindValue('doc', $rdoc3).addFilter('currentlanguage').execute())
... ... @@ -72,6 +72,7 @@
72 72   <ul>
73 73   #foreach($rdoc4 in $results5)
74 74   #set($rdoc5 = $xwiki.getDocument($rdoc4).getTranslatedDocument())
77 + #if ($locale == $rdoc5.getLanguage())
75 75   <li class="
76 76   #if ($depth > 4)
77 77   jstree-open
... ... @@ -79,6 +79,7 @@
79 79   ">
80 80   [[$rdoc5.getDisplayTitle()>>$rdoc5.fullName]]
81 81   </li>
85 + #end
82 82   #end
83 83   </ul>
84 84   #end