Changes for page Rangee Index

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

From version 12.34
edited by Tobias Wintrich
on 2021/09/28 12:07
Change comment: There is no comment for this version
To version 12.33
edited by Tobias Wintrich
on 2021/09/28 12:05
Change comment: There is no comment for this version

Summary

Details

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