Changes for page Rangee Index

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

From version 12.28
edited by Tobias Wintrich
on 2021/09/28 11:58
Change comment: There is no comment for this version
To version 12.29
edited by Tobias Wintrich
on 2021/09/28 12:00
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,10 +1,13 @@
1 1  {{velocity}}
2 2  ##{{tree links="true" edges="false"}}
3 3  #set($depth = $wikimacro.parameters.depth)
4 +#if ($xcontext.locale != 'de')
5 + #set($locale = '')
6 +#else
7 + #set($locale = $xcontext.locale)
8 +#end
4 4  {{html wiki=true}}
5 -language
6 -$xcontext.locale
7 -$doc.getLanguage()
10 +language $locale
8 8  <ul>
9 9   #set($results = false)
10 10   #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc'))