Social Connected module
For our prototyping purposes, we have decided to go with mixed custom & SXA solution as we have already used SXA in our project.
Mixed solution contained front end (FE) which used SXA and also back end (BE) part which was custom developed.
Custom solution – Front End
On FE side we have used SXA and its AddThis component together with our AddThis account.
In AddThis Tools, we have configured two website tools:
- Follow Button Inline
- Share Button Floating
We have placed pubid identification number generated in AddThis to styling options of SXA Addthis component in the footer Partial design therefore we gave visitors possibility to follow our company accounts:
We have also added HTML code component from “Follow Button Inline” tool to enable showing this component on page / footer:
This is how it looks like in Experience Editor in Edit mode:
We have placed “Share Button Floating” widget on the side to gave visitors possibility to share currently visited page on various social media:
For this widget, we didn’t have to do any special settings in SXA as we had AddThis code in footer already so AddThis is placing this widget automatically which was great for our purposes.
In AddThis dashboard, you can see really nice representation of data:
Custom solution – Back End
On Back End side we have done custom solution.
We have added buttons to Content Editor to its ribbon for certain templates. Items based on these templates where then shareable on Facebook and LinkedIn. Because of the time constraints, we have made simple integration just by using share urls. We haven’t done full integration using Facebook or LinkedIn API’s.
With this mixed approach we gave ability to share pages/items to visitors of the site on their walls and activities and also for content editors to share pages/items on company Facebook/LinkedIn pages.
I described this approach and also complete process of creating custom buttons in Sitecore Ribbon in this blog post.
As a teaser, this is how it looked like at the end: