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
on 2021/09/28 11:58
Change comment:
There is no comment for this version
To version 10.93
edited by Tobias Wintrich
on 2021/09/28 10:07
on 2021/09/28 10:07
Change comment:
There is no comment for this version
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Context elements
-
... ... @@ -1,1 +1,0 @@ 1 -Sprache - Macro code
-
... ... @@ -1,21 +1,14 @@ 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 -$xcontext.locale 7 -$doc.getLanguage() 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')) 11 - #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 8 + #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 12 12 #foreach($docname in $results) 13 13 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) 14 - <li class="$rdoc.getLanguage() 15 - #if ($depth > 0) 16 - jstree-open 17 - #end 18 - "> 11 + <li class="jstree-open"> 19 19 [[$rdoc.getDisplayTitle()>>$rdoc.fullName]] 20 20 </li> 21 21 #set($results2 = false) ... ... @@ -24,11 +24,7 @@ 24 24 <ul> 25 25 #foreach($rdoc in $results2) 26 26 #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument()) 27 - <li class="$rdoc.getLanguage() 28 - #if ($depth > 1) 29 - jstree-open 30 - #end 31 - "> 20 + <li class="jstree-open"> 32 32 [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]] 33 33 </li> 34 34 #set($results3 = false) ... ... @@ -37,11 +37,7 @@ 37 37 <ul> 38 38 #foreach($rdoc2 in $results3) 39 39 #set($rdoc3 = $xwiki.getDocument($rdoc2).getTranslatedDocument()) 40 - <li class=" 41 - #if ($depth > 2) 42 - jstree-open 43 - #end 44 - "> 29 + <li class="jstree-open"> 45 45 [[$rdoc3.getDisplayTitle()>>$rdoc3.fullName]] 46 46 </li> 47 47 #set($results4 = false) ... ... @@ -50,11 +50,7 @@ 50 50 <ul> 51 51 #foreach($rdoc3 in $results4) 52 52 #set($rdoc4 = $xwiki.getDocument($rdoc3).getTranslatedDocument()) 53 - <li class=" 54 - #if ($depth > 3) 55 - jstree-open 56 - #end 57 - "> 38 + <li class="jstree-open"> 58 58 [[$rdoc4.getDisplayTitle()>>$rdoc4.fullName]] 59 59 </li> 60 60 #set($results5 = false) ... ... @@ -63,11 +63,7 @@ 63 63 <ul> 64 64 #foreach($rdoc4 in $results5) 65 65 #set($rdoc5 = $xwiki.getDocument($rdoc4).getTranslatedDocument()) 66 - <li class=" 67 - #if ($depth > 4) 68 - jstree-open 69 - #end 70 - "> 47 + <li class="jstree-open"> 71 71 [[$rdoc5.getDisplayTitle()>>$rdoc5.fullName]] 72 72 </li> 73 73 #end ... ... @@ -82,5 +82,5 @@ 82 82 </ul> 83 83 84 84 {{/html}} 85 - ##{{/tree}}62 +{{/tree}} 86 86 {{/velocity}}
- XWiki.WikiMacroParameterClass[0]
-
- Parameter default value
-
... ... @@ -1,1 +1,1 @@ 1 - 51 +100 - Parameter description
-
... ... @@ -1,1 +1,1 @@ 1 -Öffne bis Ebene (0-5)1 +Öffne bis Ebene