SiteVision Onlinehelp
Search

Subscription mail / SMS template

The custom Velocity templates for the subscription mail / SMS uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here. There are two templates available; one is used to generate the e-mail and one is used to generate the SMS sent to the subscribers.
Elements available in the Velocity Context
NameType and Description
mailContextjavax.jcr.Node
 The mail context. See properties below
sitevisionUtilssenselogic.sitevision.api.Utils Opens in new window.
 The main entry point to all utility classes
jcrSessionjavax.jcr.Session
 The JCR Session
Additional properties available for the mail context ($mailContext)
NameType and Description 
subscriptionjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node containing the active subscription (i.e. sv:sitePage, sv:page or sv:article) 
nodejavax.jcr.PropertyType.WEAKREFERENCE 
 A Node containing the subscription (might differ from the active subscription) 
notificationjavax.jcr.PropertyType.STRING 
 The notification entered at the publishing stage 
subscriberEmailjavax.jcr.PropertyType.STRING 
 The e-mail or phone number of the subscriber 
senderEmailjavax.jcr.PropertyType.STRING 
 The e-mail of the sender 
senderjavax.jcr.PropertyType.STRING 
 An optional name of the sender 
unsubscribeTextjavax.jcr.PropertyType.STRING 
 Language dependent text for unsubscription 
subscribeURLjavax.jcr.PropertyType.URI 
 An URL used to subscribe. Note! This will only work if you have a Subscribe portlet at the page corresponding to the node 
unsubscribeURLjavax.jcr.PropertyType.URI 
 An URL used to unsubscribe. Note! This will only work if you have a Subscribe portlet at the page corresponding to the node 

Last updated:

se-sto-ste-sv5-2.sitevision-cloud.net
3.135.202.224