Sitevision Developer
Log in

Log in

Subscribe

Elements available in the Velocity Context

Name

Type and description

jcrSession

javax.jcr.Session


The JCR Session

portlet

javax.jcr.Node


This portlet. See properties below

request

javax.portlet.PortletRequest


The portlet request

sitevisionUtils

senselogic.sitevision.api.Utils


The main entry point to all utility classes

 

Additional properties available for the portlet element ($portlet)

Name
Type and Description

activeSubscription

javax.jcr.PropertyType.WEAKREFERENCE

 

A JCR-node containing the subscription (i.e. sv:page or sv:article)

addCurrentUserURL

javax.jcr.PropertyType.URI

 

An URL used to add the current user as a subscriber

addRemoveURL

javax.jcr.PropertyType.URI

 

The URL to the action

addedSubscription

javax.jcr.PropertyType.BOOLEAN

 

Indicates that the previous request added a subscription

allowEmail

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to 'Allow e-mail' in the portlet configuration

allowPhone

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to 'Allow phone number' in the portlet configuration

bundle

javax.jcr.PropertyType.WEAKREFERENCE

 

A JCR-node containing the language dependent strings. The strings are javax.jcr.PropertyType.STRING properties

currentEmail

javax.jcr.PropertyType.STRING

 

Corresponds to the e-mail for the current user (needs to be logged in)

defaultInput

javax.jcr.PropertyType.STRING

 

Corresponds to 'Default value' in the portlet configuration

errorFont

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

errors

javax.jcr.PropertyType.WEAKREFERENCE

 

A JCR-node containing the input errors. The errors are javax.jcr.PropertyType.STRING properties with names prefixed with "error"

inputFieldValue

javax.jcr.PropertyType.STRING

 

Corresponds to the value of the input field

inputFont

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

inputName

javax.jcr.PropertyType.STRING

 

The name of the text input field containing the e-mail or phone number

inputWidth

javax.jcr.PropertyType.LONG

 

Corresponds to 'Width' in the portlet configuration

isActiveSubscription

javax.jcr.PropertyType.BOOLEAN

 

Indicates if the current page or article is an active subscription

isSubscriber

javax.jcr.PropertyType.BOOLEAN

 

Indicates that the entered e-mail is already a subscriber

nonce

javax.jcr.PropertyType.STRING


The nonce attribute value for the current request

operationName

javax.jcr.PropertyType.STRING

 

The name of the form element (e.g. checkbox) that has a value from bellow

operationSubscribe

javax.jcr.PropertyType.STRING

 

The value of the form element (e.g. checkbox) used to subscribe

operationUnsubscribe

javax.jcr.PropertyType.STRING

 

The value of the form element (e.g. checkbox) used to unsubscribe

redirectURL

javax.jcr.PropertyType.URI

 

Corresponds to the 'Send user to an other page after subscription' in the portlet configuration

removeCurrentUserURL

javax.jcr.PropertyType.URI

 

An URL used to remove the current user from the subscribers

sentMessage

javax.jcr.PropertyType.STRING

 

Corresponds to the text 'Show message after subscription' in the portlet configuration

sentMessageFont

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

showSentMessage

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to the selection 'Show message after subscription' in the portlet configuration

submitImageDescription

javax.jcr.PropertyType.STRING

 

Corresponds to 'Image description' in the portlet configuration

submitText

javax.jcr.PropertyType.STRING

 

Corresponds to the text 'Button text' in the portlet configuration

submitTextFont

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

subscribeFont

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

subscribeSubmitImage

javax.jcr.PropertyType.WEAKREFERENCE

 

Corresponds to 'Image' in the portlet configuration. A JCR-Node that has property URI pointing at the image resource

subscribeText

javax.jcr.PropertyType.STRING

 

Corresponds to 'Text for subscribe' in the portlet configuration

toggleCurrentUserURL

javax.jcr.PropertyType.URI

 

An URL used to toggle subscribe / unsubscribe for the current user

unsubscribeText

javax.jcr.PropertyType.STRING

 

Corresponds to 'Text for unsubscribe' in the portlet configuration

useSubmitText

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to the selection 'Standard button' in the portlet configuration

Did you find the content on this page useful?