As of: Spring '21
Authored By: George Abboud
Last Updated: 05/13/2021
AppExchange Listing: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FYjsFUAT
Open-Source Code: https://github.com/salesforce-experiencecloud/SocialSharing
Social Sharing for your community pages! Circle/Square social icons, various layout options, and works in any region in your community!
This package is free to use, but is not an official salesforce.com product, and should be considered a community project. The functionality is not officially tested or documented, and does not come with any support, warrantees, or updates. It is offered as-is.
Component Label: Social Share
Component Aura API Name: ccpSocialShare
Component LWC API Name: ccp-social-share
Component Namespace: ccscl
Component Properties:
Property Label | Aura Property API Name | LWC Property API Name | Type | Description |
---|---|---|---|---|
Alignment | alignment | alignment | String | Set the alignment of the social share component. Options are:
|
Auto Hide Icons When Fixed | autoHide | auto-hide | Boolean | When checked and if the Alignment is fixed-right or fixed-left, the social share icons are automatically hidden and only show when the user clicks on the image to expand the icons. When unchecked, the social icons are visible all the time. |
Auto Hide Social Share Icon Text - Collapsed | socialShareTextCollapsed | social-share-text-collapsed | String | Text value to show next to the auto hide icon when social icons are collapsed |
Auto Hide Social Share Icon Text - Expanded | socialShareTextExpanded | social-share-text-expanded | String | Text value to show next to the auto hide icon when social icons are expanded |
Auto Hide Social Share Icon Link Style | socialShareIconLinkStyle | social-share-icon-link-style | String | CSS Style for the link wrapping the Social Share Icon |
Override Image Url for Auto Hide Social Share Icon | socialShareIconImageOverride | social-share-icon-image-override | String | Override Image Url for Auto Hide Social Share Icon. Square dimensions, example: 120px X 120px |
Left Margin | leftMargin | left-margin | String | left margin value of the component |
Right Margin | rightMargin | right-margin | String | right margin value of the component |
Top Level Div Style | topLevelDivStyle | top-level-div-style | String | CSS Style for the top level Div wrapping the entire component |
Title | title | title | String | Title - will not display in 'fixed' Alignment |
Title Alignment | titleAlignment | title-alignment | String | Alignment of the title when not in fixed alignment mode. Options are:
|
Title Style | titleStyle | title-style | String | CSS Style of the title |
Width of Social Icon | iconWidth | icon-width | Integer | Width of the social icon images |
Social Icon Margins | iconMargin | icon-margin | Integer | Margin in pixels between each of the Social Icons |
Social Icon Type | iconType | icon-type | String | Type of social icon to render. Options are:
|
Hide Facebook | hideFacebook | hide-facebook | String | Hide social channel on certain form factors. Options are:
|
Hide Linkedin | hideLinkedin | hide-linkedin | String | Hide social channel on certain form factors. Options are:
|
Hide Pinterest | hidePinterest | hide-pinterest | String | Hide social channel on certain form factors. Options are:
|
Hide Twitter | hideTwitter | hide-twitter | String | Hide social channel on certain form factors. Options are:
|
Hide Whatsapp | hideWhatsapp | hide-whatsapp | String | Hide social channel on certain form factors. Options are:
|
Hide Email | hideEmail | hide-email | String | Hide social channel on certain form factors. Options are:
|
Hide Link | hideLink | hide-link | String | Hide social channel on certain form factors. Options are:
|
Hide Reddit | hideReddit | hide-reddit | String | Hide social channel on certain form factors. Options are:
|
Hide Vkontakte | hideVkontakte | hide-vkontakte | String | Hide social channel on certain form factors. Options are:
|
Hide Stumbleupon | hideStumbleupon | hide-stumbleupon | String | Hide social channel on certain form factors. Options are:
|
Hide Telegram | hideTelegram | hide-telegram | String | Hide social channel on certain form factors. Options are:
|
Hide Line | hideLine | hide-line | String | Hide social channel on certain form factors. Options are:
|
Hide Viber | hideViber | hide-viber | String | Hide social channel on certain form factors. Options are:
|
Hide Pocket | hidePocket | hide-pocket | String | Hide social channel on certain form factors. Options are:
|
Hide Facebook Messenger | hideFbmessenger | hide-fbmessenger | String | Hide social channel on certain form factors. Options are:
|
hideTumblr | hide-tumblr | String | Hide social channel on certain form factors. Options are:
|
|
Order | order | order | String | Comma separated list of social services names in order. Example: facebook,linkedin,pinterest,twitter,whatsapp,email,link,vkontakte,stumbleupon,telegram,line,viber,pocket,fbmessenger,tumblr |
Override Image Url for Facebook | imageOverrideFacebook | image-override-facebook | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Linkedin | imageOverrideLinkedin | image-override-linkedin | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Pinterest | imageOverridePinterest | image-override-pinterest | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Twitter | imageOverrideTwitter | image-override-twitter | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Whatsapp | imageOverrideWhatsapp | image-override-whatsapp | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Email | imageOverrideEmail | image-override-email | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Link | imageOverrideLink | image-override-link | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Reddit | imageOverrideReddit | image-override-reddit | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Vkontakte | imageOverrideVkontakte | image-override-vkontakte | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Stumbleupon | imageOverrideStumbleupon | image-override-stumbleupon | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Telegram | imageOverrideTelegram | image-override-telegram | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Line | imageOverrideLine | image-override-line | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Viber | imageOverrideViber | image-override-viber | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Pocket | imageOverridePocket | image-override-pocket | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Facebook Messenger | imageOverrideFbmessenger | image-override-fbmessenger | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
Override Image Url for Tumblr | imageOverrideTumblr | image-override-tumblr | String | Override Image Url for Social Channel. Square dimensions, example: 120px X 120px |
- Ordering of social channels
- Overriding images per social channel
- Showing/Hiding social channels
- Various presentation / styling options
- LWR Ready
Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008jhiu
- LWR Ready
- Accessibility Fixes
Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OMv3
- Locker Service Fixes
Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008OLFo
- Auto Hide when fixed with collapse / expand functionality
- Image override for auto hide icon
- Text collapsed / expanded
- Top Level Div Style option
Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000003prAs
- Option to hide certain social sharing channels on various form factors
- Option to control order of social sharing channels
- Option to override images for social channels
- Added more social sharing channels
Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000003prAn
- Initial Release
- Choose between Circle and Square social icons!
- Various layout options, relative left/right/centered vs vertical fixed/floating right or left!
- Place in any region of your community (including shared header/footer regions)!
- Social Sharing for your community pages! Circle/Square social icons, various layout options, and works in any region in your community!