Changes for page Treeview

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

From version 21.1
edited by Ludovic Dubost
on 2010/11/03 01:27
Change comment: There is no comment for this version
To version 22.1
edited by Ludovic Dubost
on 2010/11/03 01:28
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -25,7 +25,7 @@
25 25   #set($page = $listtool.get($res, 0))
26 26   #if($page!="")
27 27   #set($parent = $listtool.get($res, 1))
28 - #set($ok = $treelist.add({"id" : $page, "value" : $page, "parent" : $parent, "url" : $xwiki.getURL($page), "expanded" : $expanded}))
28 + #set($ok = $treelist.add({"id" : $page, "value" : $page, "parent" : $parent, "url" : $xwiki.getURL($page), "expanded" : false}))
29 29   #set($ok = $newpages.add($page))
30 30   #end
31 31  #end