Changes for page Rangee Index

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

From version 12.53
edited by Tobias Wintrich
on 2021/09/28 13:06
Change comment: There is no comment for this version
To version 12.57
edited by Tobias Wintrich
on 2021/09/28 13:10
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -12,7 +12,8 @@
12 12   #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc'))
13 13   #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute())
14 14   $results
15 -
15 + #set($children =$doc.getChildren())
16 + $sorter.sort($children, ["name:asc", "ordinal:desc"]))
16 16   #foreach($docname in $results)
17 17   #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
18 18   #if ($locale == $rdoc.getLanguage())