Sharing blog posts on social media

Summary

Hello,
I was wondering if there is a plugin (or Extra, Extension or whatever it is called in ModX) to put two buttons at the end of every blog post which allows people to share the posts on Facebook and Twitter.
If someone could point me in the right direction it would be very much appreciated.
Thank you in advance.

Yes, a few actually. A good place to start would be here:

And search for “social share buttons”

You can look for one that fits your requirements, and get an idea if the extra is popular, still maintained, works with your MODX version, etc.

The Notify extra will send a tweet and there’s an app that will echo that tweet to Facebook if you use #fb in the tweet. It will also send an email to subscribers or interest groups if you use it with the Subscribe extra.

I think they are referring to share buttons that allow your site vistors to share your content to other platforms. Does Notify do that or is it for the content creator to send/tweet/etc.?

I’m still using LudwigSharriff as well. It hasn’t been updated in quite a while, but still works.

Doh … asleep at the switch.

I’ve used AddThis for that, though it’s not a MODX extra.

1 Like

I’ve used AddThis as well. This is the way I’d go.

Now that I look at them, the Share Button extras are all at least 5 years old. The most recent one is Social Share Buttons from Elfsight which I believe requires a paid subscription. LudwigShariff looks like it requires jQuery.

I’ve used a chunk based around this: GitHub - DESIGNfromWITHIN/social-sharing-modx: Add social sharing links and buttons without the bloat for MODX Revolution (based on: Social Sharing https://github.com/cferdinandi/social-sharing).

But I’ve adapted it using chunks to let clients fill in the gaps such as twitter handle anf FB address etc…

<div class="socialx"> Share this page:&nbsp;<a href="https://www.facebook.com/sharer.php?u=[[++site_url]][[~[[*id]]]]&title=[[*pagetitle]]" target="_blank"><span class="fi-social-facebook size-21 strong" ></span></a>&nbsp; <a target="_blank" href="https://twitter.com/intent/tweet?text=[[*pagetitle]]. [[*introtext]]&url=[[!++site_url]][[*uri]]&via=[[$twitterShare]]"><span class="fi-social-twitter size-21 strong" ></span></a>&nbsp; <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=[[!++site_url]][[*uri]]&title=[[*longtitle:empty=[[*pagetitle]]]]&summary=[[*introtext]]&source=[[!++site_url]][[*uri]]"><span class="fi-social-linkedin size-21 strong" ></span></a>&nbsp; <a target="_blank" href="https://pinterest.com/pin/create/button/?url=[[!++site_url]][[*uri]]&description=[[*pagetitle]]-[[*introtext]]&media=[[++site_url]][[$pinterest_image]]"><span class="fi-social-pinterest size-21 strong" ></span></a>&nbsp; <a href="mailto:?subject=[[*pagetitle]]&body=[[!++site_url]][[*uri]]"><span class="fi-mail size-21 strong" ></span></a></div>
…this also uses Foundation Icon Fonts to display the social logos but anything can be used there. I stopped using plug-ins because of concerns over privacy and the hassle of having to register sites with 3rd parties. Hope that helps.

1 Like