#macro (defineConstants) #* Constants for layout orientation *# #set($LEFT_TO_RIGHT = "LeftToRight") #set($RIGHT_TO_LEFT = "RightToLeft") #set($TOP_TO_BOTTOM = "TopToBottom") #set($BOTTOM_TO_TOP = "BottomToTop") #end #macro (defineLayoutObjects) #set($_layoutDecorator = $myPage.getDefaultDecorator("layout")) #set($_layoutDecoratorConfig = $jetspeed.getTypeConfiguration("layout", "${_layoutDecorator}", "decorations")) #set($_layouyBaseCssClass = $_layoutDecoratorConfig.getString("base.css.class")) #set($preferedLocale = $JS2RequestContext.locale) #end #* Adds link for all style sheets required by the layout and portlet decorations *# #macro (includeStyleSheets) #set($cssUrls = $renderRequest.getAttribute("cssUrls")) #foreach($cssUrl in $cssUrls) #end #end #macro (defineConfig $name $type) #set($_navConfig =$jetspeed.getTypeConfiguration("navigation", $name, "templates")) #end #* Includes a navigation component *# #macro (includeNavigation $name $_nodeSet $orientation) #defineConfig($name "navigation") #set($_ext = $_navConfig.getString("template.extension")) #parse($jetspeed.getTemplate("${name}/${orientation}${_ext}", "navigation").appRelativePath) #end