Onlinehjälpen

AddThis

The custom Velocity template in the AddThis portlet uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here
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
linkTypejavax.jcr.PropertyType.STRING
 Type of link. Possible values: "addThisDefaultLink", "imageTextLink", "textLink" or "imageLink"
addThisDefaultTypejavax.jcr.PropertyType.STRING
 Type of addThisDefaultLink. Possible values: "addThisSmall" or "addThisLarge"
linkTextjavax.jcr.PropertyType.STRING
 The link text
linkTextFontjavax.jcr.PropertyType.WEAKREFERENCE
 The font to use (sv:font)
linkHelpTextjavax.jcr.PropertyType.STRING
 The help text (title/alt)
usePopupStylejavax.jcr.PropertyType.BOOLEAN
 if services should be displayed in a popup (true) or embedded (false)
useToolbarTypejavax.jcr.PropertyType.BOOLEAN
 Convenience property for: !usePopupStyle
useClickPopupjavax.jcr.PropertyType.BOOLEAN
 Whether or not the popup should be activated by a click
usePopupDelayjavax.jcr.PropertyType.BOOLEAN
 Whether or not the popup should be delayed
popupDelayjavax.jcr.PropertyType.LONG
 The popup delay
useBrandingTextjavax.jcr.PropertyType.BOOLEAN
 Whether or not a branding text should be used
brandingTextjavax.jcr.PropertyType.STRING
 The branding text
useToolbarTextColorjavax.jcr.PropertyType.BOOLEAN
 Whether or not a toolbar text color should be used
toolbarTextColorjavax.jcr.PropertyType.WEAKREFERENCE
 The toolbar text color (sv:color)
useToolbarBackgroundColorjavax.jcr.PropertyType.BOOLEAN
 Whether or not a toolbar background color should be used
toolbarBackgroundColorjavax.jcr.PropertyType.WEAKREFERENCE
 The toolbar background color (sv:color)
usePubParameterjavax.jcr.PropertyType.BOOLEAN
 Whether or not a pub parameter (AddThis analytics username) should be used
pubParameterjavax.jcr.PropertyType.STRING
 The pub parameter (AddThis analytics username)
useFlashjavax.jcr.PropertyType.BOOLEAN
 Whether or not flash should be used
useCookiesjavax.jcr.PropertyType.BOOLEAN
 Whether or not cookies should be used
useCustomCompactServicesjavax.jcr.PropertyType.BOOLEAN
 Whether or not custom services should be used
customCompactServicesjavax.jcr.PropertyType.STRING (multiple)
 The custom services
useRemoveServicesjavax.jcr.PropertyType.BOOLEAN
 Whether or not some services should be excluded
removeServicesjavax.jcr.PropertyType.STRING (multiple)
 Services to exclude
useCustomCaptionjavax.jcr.PropertyType.BOOLEAN
 Whether or not a custom caption should be used
customCaptionjavax.jcr.PropertyType.STRING
 The custom caption
useAddThisLocalizejavax.jcr.PropertyType.BOOLEAN
 Whether or not a localized share caption should be used
addThisLocalizejavax.jcr.PropertyType.STRING
 The localized share caption
toolbarServicesjavax.jcr.PropertyType.STRING (multiple)
 The names of the services (customCompactServices if use useCustomCompactServices is trye, otherwise the default services).
languagejavax.jcr.PropertyType.STRING
 The language the AddThis portlet is set to use. The language is "en" if the language isn't supported by AddThis
addThisConfigjavax.jcr.PropertyType.STRING
 A pre-build config string based on the properties: language, useClickPopup, useFlash, useCookies, useBrandingText, brandingText, usePopupDelay, popupDelay, usePubParameter, pubParameter, useCustomCompactServices, customCompactServices, useRemoveServices, removeServices, useToolbarTextColor, toolbarTextColor, useToolbarBackgroundColor, toolbarBackgroundColor
moreServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "more services"
favoritesServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "favorites" service
printServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "print" service
emailServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "mail" service
shareThisPageOnTextjavax.jcr.PropertyType.STRING
 An i18n text for "Share this on" that can be used for proper service link titles
w3validatorServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "w3c validator" service
mailtoServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "mailto" service
domaintoolswhoisServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "whois" service
googletranslateServicesTextjavax.jcr.PropertyType.STRING
 An i18n text for "translate" service

Sidan uppdaterad:

Nästa generations publiceringsverktyg är här!

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