#set ($root = $contentRoot)
## Set locations for the current page for testing and looping
#set ($currentfolder = $_XPathTool.selectSingleNode($contentRoot, "//system-folder[@current]"))
#set ($currentpage = $_XPathTool.selectSingleNode($contentRoot, "//system-page[@current]"))
#set ($currentpath = $currentpage.getChild('path').value)
#foreach ($item in $root.children)
#set ($itempath = $item.getChild('path').value)
#set ($result = $_StringTool.substringAfter($currentpath, $itempath))
#if ( ($item.getChild('dynamic-metadata').getChild('name').value == 'top-nav' && $item.getChild('dynamic-metadata').getChild('value').value == 'Yes') or $item.name == "system-symlink")
#if ($item.name == "system-symlink")
#set ($path = $item.getChild('link').value)
#else
#set ($path = $item.getChild('path').value + '/index')
#end
#if ($result != '' || $item.getAttribute('current').value == "true")
- $item.getChild('display-name').value
#else
- $item.getChild('display-name').value
#end
#end
#end
- Calendar