Menu portlet

NOTE! The name of this portlet was earlier (pre SiteVision 3) "JCR menu".

The custom Velocity template in the JCR menu uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here

Elements available in the Velocity Context
NameType and Description
portletjavax.jcr.Node
 This portlet. See properties below
sitevisionUtilssenselogic.sitevision.api.Utils
 The main entry point to all utility classes
jcrSessionjavax.jcr.Session
 The JCR Session
requestjavax.portlet.PortletRequest
 The portlet request
Additional properties available for the portlet element ($portlet)
NameType and Description 
menuRootjavax.jcr.PropertyType.WEAKREFERENCE 
 The root node from where the menu should be rendered. The node is based on the actual start node configuration of the portlet (i.e. other startpage, startpage from metadata, show parent if empty). 
normalFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font  
useActiveFontjavax.jcr.PropertyType.BOOLEAN 
 Whether or not a different font should be used for current page  
activeFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has the property selectorText (java.lang.String) - the css class name of the active font. (NOTE! activeFont will only be available if useActiveFont == true) 
useImagejavax.jcr.PropertyType.BOOLEAN 
 Whether or not to use an Image 
imagejavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property URI (java.lang.String) - the relative URL to the image. (NOTE! image will only be available if useImage == true) 
useIconsjavax.jcr.PropertyType.BOOLEAN 
 Whether or not to use the Site's setting for icons and descriptions (i.e. "open in new window" icon, "external link" icon, "PDF" icon etc) 

Denna sida publicerades: 2012-06-14

Skriv ut PDF-avsnitt

Hjälpte informationen på den här sidan dig?

Missa inga nya rön, tips och tricks! Prenumerera på insite!

Find us!

SiteVision AB (Headquarter)
Vasagatan 10
702 10 Orebro
Sweden

Info: +46 19-17 30 30
Support: +46 19-17 30 39

Latest Tweets