Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 12.26
edited by Tobias Wintrich
on 2021/09/28 11:56
on 2021/09/28 11:56
Change comment:
There is no comment for this version
To version 12.17
edited by Tobias Wintrich
on 2021/09/28 11:47
on 2021/09/28 11:47
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,9 +1,7 @@ 1 1 {{velocity}} 2 - ##{{tree links="true" edges="false"}}2 +{{tree links="true" edges="false"}} 3 3 #set($depth = $wikimacro.parameters.depth) 4 4 {{html wiki=true}} 5 -language 6 -$doc.getLanguage() 7 7 <ul> 8 8 #set($results = false) 9 9 #set ($query = $services.query.xwql('where doc.parent = :doc and doc.hidden = 0 order by doc.title asc')) ... ... @@ -10,25 +10,25 @@ 10 10 #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 11 11 #foreach($docname in $results) 12 12 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) 13 - <li class=" $rdoc.getLanguage()11 + <li class=" 14 14 #if ($depth > 0) 15 15 jstree-open 16 16 #end 17 17 "> 18 - [[$rdoc.getDisplayTitle()>>$rdoc.fullName]] 16 + [[$rdoc.getDisplayTitle()>>$rdoc.fullName $rdoc.getLanguage()]] 19 19 </li> 20 20 #set($results2 = false) 21 21 #set($query2 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) 22 - #set($results2 = $query2.bindValue('doc', $docname).addFilter('currentlanguage').execute()) 20 + #set($results2 = $query2.bindValue('doc', $docname).addFilter('currentlanguage').execute()) 23 23 <ul> 24 24 #foreach($rdoc in $results2) 25 25 #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument()) 26 - <li class=" $rdoc.getLanguage()24 + <li class=" 27 27 #if ($depth > 1) 28 28 jstree-open 29 29 #end 30 30 "> 31 - [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]] 29 + [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName $rdoc.getLanguage()]] 32 32 </li> 33 33 #set($results3 = false) 34 34 #set($query3 = $services.query.xwql('where doc.parent=:doc and doc.hidden = 0 order by doc.title asc')) ... ... @@ -81,5 +81,5 @@ 81 81 </ul> 82 82 83 83 {{/html}} 84 - ##{{/tree}}82 +{{/tree}} 85 85 {{/velocity}}