Script element

The custom templates in the script element uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here

Elements available in the Javascript and Velocity Context
NameType and Description
portletjavax.jcr.Node
 The portlet that is rendered.
sitevisionUtilssenselogic.sitevision.api.Utils
 The main entry point to all utility classes
jcrSessionjavax.jcr.Session
 The JCR Session
requestjavax.portlet.PortletRequest
 The portlet request
itemjavax.jcr.Node
 The item (for example an article *) that is rendered

(*) The item is typically a sv:article Node or a sv:rssFeedItem Node as of SiteVision 3.6.2. In prior versions there was no support for RSS data so the item was typically a sv:article Node or an "empty" temporary Node.

Denna sida publicerades: 2014-07-11

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