Changes for page Treeview

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

From version 15.1
edited by Ludovic Dubost
on 2010/11/03 01:22
Change comment: There is no comment for this version
To version 18.1
edited by Ludovic Dubost
on 2010/11/03 01:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,2 +1,6 @@
1 1  
2 +{{treeview page="Test.TestParent1" maxdepth="1" /}}
3 +
4 +{{treeview page="Test.TestParent1" maxdepth="2" /}}
5 +
2 2  {{treeview page="Test.TestParent1" maxdepth="3" /}}
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -30,11 +30,11 @@
30 30   #end
31 31  #end
32 32  #set($pages = $newpages)
33 -PAGES: $pages
33 +##PAGES: $pages
34 34  #end
35 35  #end ## end macro
36 36  ## adding $maxdepth level
37 -#if($maxdepth)
37 +#if(!$maxdepth)
38 38   #set($maxdepth = 3)
39 39  #end
40 40  #foreach($i in [1..$maxdepth])