Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 12.41
edited by Tobias Wintrich
on 2021/09/28 12:28
on 2021/09/28 12:28
Change comment:
There is no comment for this version
To version 12.38
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,9 +7,10 @@ 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 - #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 and doc.language="en" order by doc.title asc'))13 + #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 #foreach($docname in $results) 15 15 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) ... ... @@ -58,7 +58,6 @@ 58 58 <ul> 59 59 #foreach($rdoc3 in $results4) 60 60 #set($rdoc4 = $xwiki.getDocument($rdoc3).getTranslatedDocument()) 61 - #if ($locale == $rdoc4.getLanguage()) 62 62 <li class=" 63 63 #if ($depth > 3) 64 64 jstree-open ... ... @@ -66,7 +66,6 @@ 66 66 "> 67 67 [[$rdoc4.getDisplayTitle()>>$rdoc4.fullName]] 68 68 </li> 69 - #end 70 70 #set($results5 = false) 71 71 #set($query5 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) 72 72 #set($results5 = $query3.bindValue('doc', $rdoc3).addFilter('currentlanguage').execute()) ... ... @@ -73,7 +73,6 @@ 73 73 <ul> 74 74 #foreach($rdoc4 in $results5) 75 75 #set($rdoc5 = $xwiki.getDocument($rdoc4).getTranslatedDocument()) 76 - #if ($locale == $rdoc5.getLanguage()) 77 77 <li class=" 78 78 #if ($depth > 4) 79 79 jstree-open ... ... @@ -81,7 +81,6 @@ 81 81 "> 82 82 [[$rdoc5.getDisplayTitle()>>$rdoc5.fullName]] 83 83 </li> 84 - #end 85 85 #end 86 86 </ul> 87 87 #end ... ... @@ -94,5 +94,5 @@ 94 94 </ul> 95 95 96 96 {{/html}} 97 -{{/tree}} 94 +##{{/tree}} 98 98 {{/velocity}}