Changes for page Rangee Index

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

From version 12.31
edited by Tobias Wintrich
on 2021/09/28 12:01
Change comment: There is no comment for this version
To version 12.32
edited by Tobias Wintrich
on 2021/09/28 12:02
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -29,13 +29,15 @@
29 29   <ul>
30 30   #foreach($rdoc in $results2)
31 31   #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument())
32 - <li class="$rdoc.getLanguage()
33 - #if ($depth > 1)
34 - jstree-open
35 - #end
36 - ">
37 - [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]]
38 - </li>
32 + #if ($locale == $rdoc.getLanguage())
33 + <li class="$rdoc.getLanguage()
34 + #if ($depth > 1)
35 + jstree-open
36 + #end
37 + ">
38 + [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]]
39 + </li>
40 + #end
39 39   #set($results3 = false)
40 40   #set($query3 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc'))
41 41   #set($results3 = $query3.bindValue('doc', $rdoc).addFilter('currentlanguage').execute())