Hi,

I'd like to have sharing buttons. I tried addToAny and it just does not work at all as expected. Also it just does not have any documentation at all...

So, since this is just a very basic task I'd like to do it myself. So I just know what's going on. So I have a content type called news-item and a page which crawls for it and displays them.

How can I now add my own html/js to this? What's the best practice here?

Comments

VM’s picture

addtoany isn't the only option in contrib. To implement your own, you would need to write a module. if you want to continue down that road, then I suggest reviewing the other modules in contrib and how they perform the task. If you choose not to write a module, please edit your post and move it to the 'post installation' forum per https://www.drupal.org/node/644164

vinayak nair’s picture

hi,
there are plenty of option for sharing content with social media, these are some modules that will help you::
Service Links
Social Share
AddThis
Easy Social