Changes for page Treeview

Last modified by Ludovic Dubost on 2023/04/25 09:12

From version 4.1
edited by Ludovic Dubost
on 2010/11/03 01:15
Change comment: There is no comment for this version
To version 7.1
edited by Ludovic Dubost
on 2010/11/03 01:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +Treeview
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 1.0
1 +XWiki 2.0
Content
... ... @@ -1,0 +1,2 @@
1 +
2 +{{treeview page="Test.TestParent1" maxdepth="1" /}}
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -35,7 +35,7 @@
35 35  #if($maxdepth)
36 36   #set($maxdepth = 3)
37 37  #end
38 -#foreach($i in 1..$maxdepth)
38 +#foreach($i in [1..$maxdepth])
39 39   #if($velocityCount==1)
40 40   #addlevel(true)
41 41   #else