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.
| Name | Type and Description |
|---|---|
| mailContext | javax.jcr.Node |
| The mail context. See properties below | |
| sitevisionUtils | senselogic.sitevision.api.Utils Opens in new window. |
| The main entry point to all utility classes | |
| jcrSession | javax.jcr.Session |
| The JCR Session |
| Name | Type and Description | |
|---|---|---|
| subscription | javax.jcr.PropertyType.WEAKREFERENCE | |
| A Node containing the active subscription (i.e. sv:sitePage, sv:page or sv:article) | ||
| node | javax.jcr.PropertyType.WEAKREFERENCE | |
| A Node containing the subscription (might differ from the active subscription) | ||
| notification | javax.jcr.PropertyType.STRING | |
| The notification entered at the publishing stage | ||
| subscriberEmail | javax.jcr.PropertyType.STRING | |
| The e-mail or phone number of the subscriber | ||
| senderEmail | javax.jcr.PropertyType.STRING | |
| The e-mail of the sender | ||
| sender | javax.jcr.PropertyType.STRING | |
| An optional name of the sender | ||
| unsubscribeText | javax.jcr.PropertyType.STRING | |
| Language dependent text for unsubscription | ||
| subscribeURL | javax.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 | ||
| unsubscribeURL | javax.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: