Changes for page Rangee Index

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

From version 12.59
edited by Tobias Wintrich
on 2021/09/28 13:11
Change comment: There is no comment for this version
To version 12.46
edited by Tobias Wintrich
on 2021/09/28 12:32
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,5 +1,5 @@
1 1  {{velocity}}
2 -##{{tree links="true" edges="false"}}
2 +{{tree links="true" edges="false"}}
3 3  #set($depth = $wikimacro.parameters.depth)
4 4  #if ($xcontext.locale == 'de')
5 5   #set($locale = '')
... ... @@ -9,15 +9,8 @@
9 9  {{html wiki=true}}
10 10  <ul>
11 11   #set($results = false)
12 - #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc'))
13 - #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute())
14 - $results
15 - #set($children =$doc.getChildren())
16 - Single Property Sort
17 - #foreach($obj in $sorter.sort($children, "name"))
18 - $obj
19 - #end
20 - End
12 + #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc'))
13 + #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute())
21 21   #foreach($docname in $results)
22 22   #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
23 23   #if ($locale == $rdoc.getLanguage())
... ... @@ -101,5 +101,5 @@
101 101  </ul>
102 102  
103 103  {{/html}}
104 -##{{/tree}}
97 +{{/tree}}
105 105  {{/velocity}}