Adding facebook like and other social media buttons to blog

Topics: Customizing Orchard
Oct 31, 2011 at 3:40 PM

Hello,

 

Is there a way to apply a widget to the blog only? I'd like to add a facebook like button to blog posts...and possibly the google +1 and twitter follow button.

 

Thanks!

Oct 31, 2011 at 4:21 PM

Widgets don't apply to content types. For that you need a ContentPart instead (which you can then attach to the BlogPost content type). A widget on the other hand is a content item in its own right that sits in a layout zone.

A search on the Orchard gallery might help you: http://orchardproject.net/gallery/List/Search?packageType=Modules&searchCategory=All+Categories&searchTerm=social&sortOrder=package-download-count&pageSize=10

There I see two different versions of "AddThis" module, and there's also "FollowMe".