The custom templates in the script field uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here
| Name | Type and Description |
|---|---|
| portlet | javax.jcr.Node |
| The portlet that is rendered. | |
| sitevisionUtils | senselogic.sitevision.api.Utils Opens in new window. |
| The main entry point to all utility classes | |
| jcrSession | javax.jcr.Session |
| The JCR Session | |
| request | javax.portlet.PortletRequest |
| The portlet request | |
| values | java.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. | |
| messages | java.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.
More information about properties available on scriptfields and subscripts can be found in the Public API section.
Last updated: