Hi Marius, Originally I simply copy-pasted the example code: {{menu type="vertical collapsible"}} {{velocity}} #set ($depth = 3) #set ($limit = 10) #macro (children $parentDoc $level) #foreach ($child in $parentDoc.getChildren($limit, 0)) #set ($childDoc = $xwiki.getDocument($child)) $stringtool.repeat('*', $level) {{html}} $escapetool.xml($childDoc.plainTitle) <$childDoc.getURL()> {{/html}} #if ($level < $depth) #children ($childDoc $mathtool.add($level, 1)) #end #end #end #children ($doc 1) {{/velocity}} {{/menu}} But that generated the "nested scripts" error. I then checked the object, and noticed that there's a UIEntensionClass with the following code: {{velocity}} #panelheader("Navigation") {{menu type="vertical collapsible"}}{{include reference="xwiki:Menu.Navigation" /}}{{/menu}} #panelfooter() {{/velocity}} So I changed the original example code to... {{velocity}} #set ($depth = 3) #set ($limit = 10) #macro (children $parentDoc $level) #foreach ($child in $parentDoc.getChildren($limit, 0)) #set ($childDoc = $xwiki.getDocument($child)) $stringtool.repeat('*', $level) {{html}} $escapetool.xml($childDoc.plainTitle) <$childDoc.getURL()> {{/html}} #if ($level < $depth) #children ($childDoc $mathtool.add($level, 1)) #end #end #end #children ($doc 1) {{/velocity}} ...which solved the error. -- View this message in context: http://xwiki.475771.n2.nabble.com/Menu-Application-rendering-content-tp75901... Sent from the XWiki- Users mailing list archive at Nabble.com.