Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 10.94
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
To version 11.1
edited by Tobias Wintrich
on 2021/09/28 10:12
on 2021/09/28 10:12
Change comment:
There is no comment for this version
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -2,7 +2,6 @@ 2 2 {{tree links="true" edges="false"}} 3 3 #set($depth = $wikimacro.parameters.depth) 4 4 {{html wiki=true}} 5 -$depth 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,7 +9,11 @@ 9 9 #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute()) 10 10 #foreach($docname in $results) 11 11 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) 12 - <li class="jstree-open"> 11 + <li class=" 12 + #if ($depth > 0) 13 + jstree-open 14 + #end 15 + "> 13 13 [[$rdoc.getDisplayTitle()>>$rdoc.fullName]] 14 14 </li> 15 15 #set($results2 = false) ... ... @@ -18,7 +18,11 @@ 18 18 <ul> 19 19 #foreach($rdoc in $results2) 20 20 #set($rdoc2 = $xwiki.getDocument($rdoc).getTranslatedDocument()) 21 - <li class="jstree-open"> 24 + <li class=" 25 + #if ($depth > 1) 26 + jstree-open 27 + #end 28 + "> 22 22 [[$rdoc2.getDisplayTitle()>>$rdoc2.fullName]] 23 23 </li> 24 24 #set($results3 = false) ... ... @@ -27,7 +27,11 @@ 27 27 <ul> 28 28 #foreach($rdoc2 in $results3) 29 29 #set($rdoc3 = $xwiki.getDocument($rdoc2).getTranslatedDocument()) 30 - <li class="jstree-open"> 37 + <li class=" 38 + #if ($depth > 2) 39 + jstree-open 40 + #end 41 + "> 31 31 [[$rdoc3.getDisplayTitle()>>$rdoc3.fullName]] 32 32 </li> 33 33 #set($results4 = false) ... ... @@ -36,7 +36,11 @@ 36 36 <ul> 37 37 #foreach($rdoc3 in $results4) 38 38 #set($rdoc4 = $xwiki.getDocument($rdoc3).getTranslatedDocument()) 39 - <li class="jstree-open"> 50 + <li class=" 51 + #if ($depth > 3) 52 + jstree-open 53 + #end 54 + "> 40 40 [[$rdoc4.getDisplayTitle()>>$rdoc4.fullName]] 41 41 </li> 42 42 #set($results5 = false) ... ... @@ -45,7 +45,11 @@ 45 45 <ul> 46 46 #foreach($rdoc4 in $results5) 47 47 #set($rdoc5 = $xwiki.getDocument($rdoc4).getTranslatedDocument()) 48 - <li class="jstree-open"> 63 + <li class=" 64 + #if ($depth > 4) 65 + jstree-open 66 + #end 67 + "> 49 49 [[$rdoc5.getDisplayTitle()>>$rdoc5.fullName]] 50 50 </li> 51 51 #end
- XWiki.WikiMacroParameterClass[0]
-
- Parameter default value
-
... ... @@ -1,1 +1,1 @@ 1 - 1001 +5 - Parameter description
-
... ... @@ -1,1 +1,1 @@ 1 -Öffne bis Ebene 1 +Öffne bis Ebene (0-5)