SiteVision Onlinehelp
Search

Subscribe portlet

The custom Velocity templates in the Subscribe portlet uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here. There are two templates available; one is rendered in the "normal" case then the current page is an active subscription, the other is used otherwise.
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 
subscribeTextjavax.jcr.PropertyType.STRING 
 Corresponds to 'Text for subscribe' in the portlet configuration 
unsubscribeTextjavax.jcr.PropertyType.STRING 
 Corresponds to 'Text for unsubscribe' in the portlet configuration 
subscribeFontjavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to 'Subscription type font' in the portlet configuration. A Node that has property selectorText (java.lang.String) - the css class name of the font  
useSubmitTextjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the selection 'Standard button' in the portlet configuration 
submitTextjavax.jcr.PropertyType.STRING 
 Corresponds to the text 'Button text' in the portlet configuration 
submitTextFontjavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to 'Standard button font' in the portlet configuration. A Node that has property selectorText (java.lang.String) - the css class name of the font  
subscribeSubmitImagejavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to 'Image' in the portlet configuration. A JCR-Node that has property URI pointing at the image resource 
submitImageDescriptionjavax.jcr.PropertyType.STRING 
 Corresponds to 'Image description' in the portlet configuration 
defaultInputjavax.jcr.PropertyType.STRING 
 Corresponds to 'Default value' in the portlet configuration 
inputWidthjavax.jcr.PropertyType.LONG 
 Corresponds to 'Width' in the portlet configuration 
inputFontjavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to 'Text field font' in the portlet configuration. A Node that has property selectorText (java.lang.String) - the css class name of the font  
allowEmailjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to 'Allow e-mail' in the portlet configuration 
allowPhonejavax.jcr.PropertyType.BOOLEAN 
 Corresponds to 'Allow phone number' in the portlet configuration 
errorFontjavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to 'Font for error messages' in the portlet configuration. A Node that has property selectorText (java.lang.String) - the css class name of the font  
showSentMessagejavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the selection 'Show message after subscription' in the portlet configuration 
sentMessagejavax.jcr.PropertyType.STRING 
 Corresponds to the text 'Show message after subscription' in the portlet configuration 
sentMessageFontjavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to 'Show message after subscription font' in the portlet configuration. A Node that has property selectorText (java.lang.String) - the css class name of the font . 
redirectURLjavax.jcr.PropertyType.URI 
 Corresponds to the 'Send user to an other page after subscription' in the portlet configuration 
inputNamejavax.jcr.PropertyType.STRING 
 The name of the text input field containing the e-mail or phone number 
operationNamejavax.jcr.PropertyType.STRING 
 The name of the form element (e.g. checkbox) that has a value from bellow 
operationSubscribejavax.jcr.PropertyType.STRING 
 The value of the form element (e.g. checkbox) used to subscribe 
operationUnsubscribejavax.jcr.PropertyType.STRING 
 The value of the form element (e.g. checkbox) used to unsubscribe 
addedSubscriptionjavax.jcr.PropertyType.BOOLEAN 
 Indicates that the previous request added a subscription 
addRemoveURLjavax.jcr.PropertyType.URI 
 The URL to the action 
isActiveSubscriptionjavax.jcr.PropertyType.BOOLEAN 
 Indicates if the current page or article is an active subscription 
activeSubscriptionjavax.jcr.PropertyType.WEAKREFERENCE 
 A JCR-node containing the subscription (i.e. sv:page or sv:article) 
inputFieldValuejavax.jcr.PropertyType.STRING 
 Corresponds to the value of the input field 
currentEmailjavax.jcr.PropertyType.STRING 
 Corresponds to the e-mail for the current user (needs to be logged in) 
isSubscriberjavax.jcr.PropertyType.BOOLEAN 
 Indicates that the entered e-mail is already a subscriber 
addCurrentUserURLjavax.jcr.PropertyType.URI 
 An URL used to add the current user as a subscriber 
removeCurrentUserURLjavax.jcr.PropertyType.URI 
 An URL used to remove the current user from the subscribers 
toggleCurrentUserURLjavax.jcr.PropertyType.URI 
 An URL used to toggle subscribe / unsubscribe for the current user 
bundlejavax.jcr.PropertyType.WEAKREFERENCE 
 A JCR-node containing the language dependent strings. The strings are javax.jcr.PropertyType.STRING properties 
errorsjavax.jcr.PropertyType.WEAKREFERENCE 
 A JCR-node containing the input errors. The errors are javax.jcr.PropertyType.STRING properties with names prefixed with "error" 

Last updated:

se-sto-pio-sv5-1.sitevision-cloud.net
3.138.141.202