Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 12.48
edited by Tobias Wintrich
on 2021/09/28 13:04
on 2021/09/28 13:04
Change comment:
There is no comment for this version
To version 12.39
edited by Tobias Wintrich
on 2021/09/28 12:21
on 2021/09/28 12:21
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
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 = '') ... ... @@ -7,6 +7,7 @@ 7 7 #set($locale = $xcontext.locale) 8 8 #end 9 9 {{html wiki=true}} 10 +language $locale 10 10 <ul> 11 11 #set($results = false) 12 12 #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc')) ... ... @@ -13,7 +13,7 @@ 13 13 #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 14 14 #foreach($docname in $results) 15 15 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) 16 - 17 + #if ($locale == $rdoc.getLanguage()) 17 17 <li class=" 18 18 #if ($depth > 0) 19 19 jstree-open ... ... @@ -21,7 +21,7 @@ 21 21 "> 22 22 [[$rdoc.getDisplayTitle()>>$rdoc.fullName]] 23 23 </li> 24 - 25 + #end 25 25 #set($results2 = false) 26 26 #set($query2 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) 27 27 #set($results2 = $query2.bindValue('doc', $docname).addFilter('currentlanguage').execute()) ... ... @@ -94,5 +94,5 @@ 94 94 </ul> 95 95 96 96 {{/html}} 97 -{{/tree}} 98 +##{{/tree}} 98 98 {{/velocity}}