Expand my Community achievements bar.

SOLVED

Social sharing In AEM

Avatar

Level 5

Hi Guys,

   I am trying to add social sharing options to my blog pages.  The context is that author will share the article/blog to the organisation's social page [This is not for end user, should be only for author]

Can some one tell me whether the following will work??

Pinterest:

    <a data-description="Blog title 1" data-media="/content/dam/content-images/gap/summary_share.png" href="https://in.pinterest.com/pin/create/button/">Next stop: Pinterest</a>

Tweet Share:
    <a href="https://twitter.com/share">Tweet this</a>

FB Share:

    <a href="https://www.facebook.com/sharer/sharer.php">Share this </a>

This  is existing code, and i have to use this minimal changes. Not sure if it works or not.

Please let me know your comments

1 Accepted Solution

Avatar

Correct answer by
Level 10

It should work!! You can also use any of the 3rd party plugins like 'ShareThis' or JQuery Plugins 'Social' etc.

Also according to me, better to make these as a page properties and allow authors to select the social medias where they would like to share these pages once activated. Based on these properties share them using the APIs to share them on activation.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

It should work!! You can also use any of the 3rd party plugins like 'ShareThis' or JQuery Plugins 'Social' etc.

Also according to me, better to make these as a page properties and allow authors to select the social medias where they would like to share these pages once activated. Based on these properties share them using the APIs to share them on activation.