<% var root = currentNode.session.getRootNode().getNode("content"); function children(parent) { var nodes = []; for(var i in parent) { if(!i.match(/^jcr:|^sling:|^js$|^css$|^fonts$/)) { nodes.push([i,parent[i]]); } } return nodes.sort(); } function uriOf(node) { return (""+node).replace(/^\/content\//,"/"); } function titleOf(node) { return (""+node).replace(/^\/content\//,"/"); } %>