SiteVision Onlinehelp
Search

Script field

The custom templates in the script field 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 Opens in new window.
 The main entry point to all utility classes
jcrSessionjavax.jcr.Session
 The JCR Session
requestjavax.portlet.PortletRequest
 The portlet request
valuesjava.util.Map
 A map containing values associated with subscript fields. The key should be a subscript field and the corresponding value is either a String or a String[] object. An IllegalArgumentException will be thrown if any other object is used with the methods in the map.
messagesjava.util.Map
 A map containing messages associated with subscripts fields. The key is a subscript field and the corresponding value is a String object. An IllegalArgumentException will be thrown if any other is used with the methods in the map.
The portlet node contains a reference to the form in the portlet configuration. This form reference can then be used to get a reference to the scriptfield (and subscripts) in the form. The name of the scriptfield and subscript is used in this addressing processes. See the screenshots below for an example.
Zoom image
Zoom image
Zoom image
More information about properties available on scriptfields and subscripts can be found in the Public API section.

Last updated:

se-sto-pio-sv5-2.sitevision-cloud.net
18.118.137.243