Changes for page Rangee Index
Last modified by Tobias Wintrich on 2025/06/04 09:20
From version 7.37
edited by Tobias Wintrich
on 2021/09/27 14:50
on 2021/09/27 14:50
Change comment:
There is no comment for this version
To version 8.3
edited by Tobias Wintrich
on 2021/09/27 14:55
on 2021/09/27 14:55
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Rangee Document Tree1 +Rangee Index - Content
-
... ... @@ -1,4 +1,4 @@ 1 -{{include reference="XWiki.DocumentTreeMacros" 1 +{{include reference="XWiki.DocumentTreeMacros"/}} 2 2 3 3 {{velocity wiki="false"}} 4 4 #if ($xcontext.action == 'get') ... ... @@ -6,24 +6,3 @@ 6 6 #handleDocumentTreeRequest 7 7 #end 8 8 {{/velocity}} 9 - 10 -{{velocity}} 11 -#if ($xcontext.action != 'get') 12 - == Document Hierarchy Tree == 13 - 14 - {{documentTree /}} 15 - 16 - === Compact Document Hierarchy Tree === 17 - 18 - {{documentTree compact="true" /}} 19 - 20 - == Wiki > Space > Page Tree == 21 - 22 - {{documentTree showWikis="true" showSpaces="true" showTranslations="false" showAttachments="false" showChildDocuments="false" /}} 23 - 24 - == Full Entity Tree == 25 - 26 - {{documentTree showWikis="true" showWikiPrettyName="false" showSpaces="true" showDocumentTitle="false" 27 - showChildDocuments="false" showObjects="true" showClassProperties="true" /}} 28 -#end 29 -{{/velocity}}
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,28 +1,34 @@ 1 -{{template name="RangeeDocumentTree_macros.vm" /}} 2 - 1 +{{tree links="true"}} 3 3 {{velocity}} 4 -#set ($options = {}) 5 -#foreach ($parameterName in $xcontext.macro.params.parameterNames) 6 - #set ($discard = $options.put($parameterName, $xcontext.macro.params.get($parameterName))) 7 -#end 8 -{{html clean="false"}} 9 -#prepareTreeOptions($options) 10 -#documentTree($options) 11 - 12 -{{/html}} 13 - 14 -{{tree}} 3 +{{html wiki=true}} 4 +<ul> 15 15 #foreach ($child in $doc.getChildren()) 16 - * [[$child]] 17 - #foreach ($subchild in $xwiki.getDocument($child).getChildren()) 18 - ** [[$subchild]] 19 - #foreach ($subsubchild in $xwiki.getDocument($subchild).getChildren()) 20 - *** [[$subsubchild]] 6 + <li class="jstree-open"> 7 + [[$child]] 8 + <ul> 9 + #foreach ($subchild in $xwiki.getDocument($child).getChildren()) 10 + <li class="jstree-open"> 11 + [[$subchild]] 12 + <ul> 13 + #foreach ($subsubchild in $xwiki.getDocument($subchild).getChildren()) 14 + <li class="jstree-open"> 15 + [[$subsubchild]] 16 + <ul> 17 + #foreach ($subsubsubchild in $xwiki.getDocument($subsubchild).getChildren()) 18 + <li class="jstree-open"> 19 + [[$subsubsubchild]] 20 + </li> 21 + #end 22 + </ul> 23 + </li> 24 + #end 25 + </ul> 26 + </li> 21 21 #end 22 - #end 28 + </ul> 29 + </li> 23 23 #end 24 -{{/tree}} 25 - 26 - 31 +</ul> 32 +{{/html}} 27 27 {{/velocity}} 28 - 34 +{{/tree}} - Macro id
-
... ... @@ -1,1 +1,1 @@ 1 -Rangee DocumentTree1 +RangeeIndex - Macro name
-
... ... @@ -1,1 +1,1 @@ 1 -Rangee Document Tree1 +Rangee Index - Macro visibility
-
... ... @@ -1,1 +1,1 @@ 1 - Current Wiki1 +Global