Help SiteVision 4

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.Utilsopens 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 

Denna sida publicerades: 2010-10-27

Skriv ut PDF-avsnitt

Hjälpte informationen på den här sidan dig?

Missa inga nya rön, tips och tricks! Prenumerera på insite!

sitevision.eu

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