## 1 #set ($currentDate = $_DateTool.getDate()) #set ($currentMonth = $_DateTool.format("yyyy/MM", $currentDate)) Current Events ## 2 #set ($calendarMonths = $_XPathTool.selectNodes($contentRoot, "/system-index-block/system-folder/system-page")) #set ($pevious = "nothing") #set ($next = "nothing") #set ($previousSet = false) #set ($nextSet = false) #foreach ($month in $calendarMonths) #if ($month.getAttribute("current").getValue()) #set ($previousSet = true) #elseif (!($previousSet) && !($nextSet)) #set ($previous = $month.getChild("path").value) #elseif (($previousSet) && !($nextSet)) #set ($next = $month.getChild("path").value) #set ($nextSet = true) #end #end #if ($previous != "nothing") < #end #if ($next != "nothing") > #end