The custom Velocity template in the AddThis portlet uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here
| Name | Type and Description |
|---|---|
| portlet | javax.jcr.Node |
| This portlet. See properties below | |
| sitevisionUtils | senselogic.sitevision.api.Utils |
| The main entry point to all utility classes | |
| jcrSession | javax.jcr.Session |
| The JCR Session | |
| request | javax.portlet.PortletRequest |
| The portlet request |
| Name | Type and Description |
|---|---|
| linkType | javax.jcr.PropertyType.STRING |
| Type of link. Possible values: "addThisDefaultLink", "imageTextLink", "textLink" or "imageLink" | |
| addThisDefaultType | javax.jcr.PropertyType.STRING |
| Type of addThisDefaultLink. Possible values: "addThisSmall" or "addThisLarge" | |
| linkText | javax.jcr.PropertyType.STRING |
| The link text | |
| linkTextFont | javax.jcr.PropertyType.WEAKREFERENCE |
| The font to use (sv:font) | |
| linkHelpText | javax.jcr.PropertyType.STRING |
| The help text (title/alt) | |
| usePopupStyle | javax.jcr.PropertyType.BOOLEAN |
| if services should be displayed in a popup (true) or embedded (false) | |
| useToolbarType | javax.jcr.PropertyType.BOOLEAN |
| Convenience property for: !usePopupStyle | |
| useClickPopup | javax.jcr.PropertyType.BOOLEAN |
| Whether or not the popup should be activated by a click | |
| usePopupDelay | javax.jcr.PropertyType.BOOLEAN |
| Whether or not the popup should be delayed | |
| popupDelay | javax.jcr.PropertyType.LONG |
| The popup delay | |
| useBrandingText | javax.jcr.PropertyType.BOOLEAN |
| Whether or not a branding text should be used | |
| brandingText | javax.jcr.PropertyType.STRING |
| The branding text | |
| useToolbarTextColor | javax.jcr.PropertyType.BOOLEAN |
| Whether or not a toolbar text color should be used | |
| toolbarTextColor | javax.jcr.PropertyType.WEAKREFERENCE |
| The toolbar text color (sv:color) | |
| useToolbarBackgroundColor | javax.jcr.PropertyType.BOOLEAN |
| Whether or not a toolbar background color should be used | |
| toolbarBackgroundColor | javax.jcr.PropertyType.WEAKREFERENCE |
| The toolbar background color (sv:color) | |
| usePubParameter | javax.jcr.PropertyType.BOOLEAN |
| Whether or not a pub parameter (AddThis analytics username) should be used | |
| pubParameter | javax.jcr.PropertyType.STRING |
| The pub parameter (AddThis analytics username) | |
| useFlash | javax.jcr.PropertyType.BOOLEAN |
| Whether or not flash should be used | |
| useCookies | javax.jcr.PropertyType.BOOLEAN |
| Whether or not cookies should be used | |
| useCustomCompactServices | javax.jcr.PropertyType.BOOLEAN |
| Whether or not custom services should be used | |
| customCompactServices | javax.jcr.PropertyType.STRING (multiple) |
| The custom services | |
| useRemoveServices | javax.jcr.PropertyType.BOOLEAN |
| Whether or not some services should be excluded | |
| removeServices | javax.jcr.PropertyType.STRING (multiple) |
| Services to exclude | |
| useCustomCaption | javax.jcr.PropertyType.BOOLEAN |
| Whether or not a custom caption should be used | |
| customCaption | javax.jcr.PropertyType.STRING |
| The custom caption | |
| useAddThisLocalize | javax.jcr.PropertyType.BOOLEAN |
| Whether or not a localized share caption should be used | |
| addThisLocalize | javax.jcr.PropertyType.STRING |
| The localized share caption | |
| toolbarServices | javax.jcr.PropertyType.STRING (multiple) |
| The names of the services (customCompactServices if use useCustomCompactServices is trye, otherwise the default services). | |
| language | javax.jcr.PropertyType.STRING |
| The language the AddThis portlet is set to use. The language is "en" if the language isn't supported by AddThis | |
| addThisConfig | javax.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 | |
| moreServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "more services" | |
| favoritesServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "favorites" service | |
| printServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "print" service | |
| emailServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "mail" service | |
| shareThisPageOnText | javax.jcr.PropertyType.STRING |
| An i18n text for "Share this on" that can be used for proper service link titles | |
| w3validatorServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "w3c validator" service | |
| mailtoServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "mailto" service | |
| domaintoolswhoisServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "whois" service | |
| googletranslateServicesText | javax.jcr.PropertyType.STRING |
| An i18n text for "translate" service |
Sidan uppdaterad:
Nästa generations publiceringsverktyg är här!