I am trying to use getTOC, but unfortunately, my example always returns zero
...
{{velocity}}
#set($d=$xwiki.getDocument('Sandbox.WebHome'))
#set($tree=$d.getTOC(0,3,false))
$tree.size()
#foreach($key in $tree.entrySet())
* $key.value.text
#end
{{/velocity}}
Can somebody help me with syntax? What's I doing wrong?
Thanks beforehand!
Eugen Colesnicov
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Using-getTOC-function-tp5975427p5975427.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users