Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 12.23
edited by Tobias Wintrich
on 2021/09/28 11:55
on 2021/09/28 11:55
Change comment:
There is no comment for this version
To version 11.7
edited by Tobias Wintrich
on 2021/09/28 10:19
on 2021/09/28 10:19
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Context elements
-
... ... @@ -1,1 +1,0 @@ 1 -Sprache - Macro code
-
... ... @@ -2,14 +2,13 @@ 2 2 {{tree links="true" edges="false"}} 3 3 #set($depth = $wikimacro.parameters.depth) 4 4 {{html wiki=true}} 5 -$doc.getLanguage() 6 6 <ul> 7 7 #set($results = false) 8 8 #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc')) 9 - #set($results = $query.bindValue('doc', $doc.fullName).addFilter(' currentlanguage').execute())8 + #set($results = $query.bindValue('doc', $doc.fullName).addFilter('en').execute()) 10 10 #foreach($docname in $results) 11 11 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) 12 - <li class=" $rdoc.getLanguage()11 + <li class=" 13 13 #if ($depth > 0) 14 14 jstree-open 15 15 #end ... ... @@ -18,11 +18,11 @@ 18 18 </li> 19 19 #set($results2 = false) 20 20 #set($query2 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) 21 - #set($results2 = $query2.bindValue('doc', $docname).addFilter(' currentlanguage').execute())20 + #set($results2 = $query2.bindValue('doc', $docname).addFilter('en').execute()) 22 22 <ul> 23 23 #foreach($rdoc in $results2) 24 24 #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument()) 25 - <li class=" $rdoc.getLanguage()24 + <li class=" 26 26 #if ($depth > 1) 27 27 jstree-open 28 28 #end ... ... @@ -31,7 +31,7 @@ 31 31 </li> 32 32 #set($results3 = false) 33 33 #set($query3 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) 34 - #set($results3 = $query3.bindValue('doc', $rdoc).addFilter(' currentlanguage').execute())33 + #set($results3 = $query3.bindValue('doc', $rdoc).addFilter('en').execute()) 35 35 <ul> 36 36 #foreach($rdoc2 in $results3) 37 37 #set($rdoc3 = $xwiki.getDocument($rdoc2).getTranslatedDocument()) ... ... @@ -44,7 +44,7 @@ 44 44 </li> 45 45 #set($results4 = false) 46 46 #set($query4 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) 47 - #set($results4 = $query4.bindValue('doc', $rdoc2).addFilter(' currentlanguage').execute())46 + #set($results4 = $query4.bindValue('doc', $rdoc2).addFilter('en').execute()) 48 48 <ul> 49 49 #foreach($rdoc3 in $results4) 50 50 #set($rdoc4 = $xwiki.getDocument($rdoc3).getTranslatedDocument()) ... ... @@ -57,7 +57,7 @@ 57 57 </li> 58 58 #set($results5 = false) 59 59 #set($query5 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) 60 - #set($results5 = $query3.bindValue('doc', $rdoc3).addFilter(' currentlanguage').execute())59 + #set($results5 = $query3.bindValue('doc', $rdoc3).addFilter('en').execute()) 61 61 <ul> 62 62 #foreach($rdoc4 in $results5) 63 63 #set($rdoc5 = $xwiki.getDocument($rdoc4).getTranslatedDocument())