Problem/Motivation

Build a Drupal 8 port of AddThis.

Proposed resolution

Build a list of tasks to complete to build a port.

  • Global configuration (needed for port)
  • Service API (needed for port)
  • Sharing Buttons API (needed for port)
    • Widget type plugin
    • Specific widget configuration
    • Element configuration
    • Third-party toolbox settings
    • Widget presets
    • Alter api
    • Rendering
  • Follow Buttons API (much required in social tools)
  • Smart Layers API (optional)
  • Welcome Bar API (optional)
  • Trending Content Box API (optional)
  • Content Feeds API (optional)
  • Sharing Endpoints API (optional)
  • Analytics API (optional)

Remaining tasks

User interface changes

API changes

Original report by @mikro_O

Hi,
Is there plans to introduce D8 version of this module?
We (@InternetDevels team) would like to help you with development of this version.
Thanks, @mikro_O.

Comments

matglas86’s picture

Hi mikro_o. I'm open for any suggestions on this. We have not yet worked on this. I would love to see a good setup for Version 8. Would you be willing to coordinate and start development in a sandbox first for example?

damienmckenna’s picture

Title: Drupal 8 version » Drupal 8 port of AddThis

Updated the title to follow the (unofficial) standard format used elsewhere.

matglas86’s picture

Issue summary: View changes

We could build a list of tickets with what should be build. And get the conversation started. Here is a quick list of thinks I think we need to work on.

  • Global configuration (needed for port)
  • Service API (needed for port)
  • Sharing Buttons API (needed for port)
    • Widget type plugin
    • Specific widget configuration
    • Element configuration
    • Third-party toolbox settings
    • Widget presets
    • Alter api
    • Rendering
  • Follow Buttons API (much required in social tools)
  • Smart Layers API (optional)
  • Welcome Bar API (optional)
  • Trending Content Box API (optional)
  • Content Feeds API (optional)
  • Sharing Endpoints API (optional)
  • Analytics API (optional)
miro_dietiker’s picture

Porting the Addthis project has been proposed as a Google Summer of Code 2015 project idea.
https://groups.drupal.org/node/455978#project26
Multiple students are interested in this project.
Interested Student :Kushal Bhatia, Saurabh, gaurav281195, Gaurav Yadav
No mentor is assigned yet...

For sake of completeness, here's where our activity overlaps.
I'm maintainer of the ShareMessage module that also integrates with AddThis and has a working Drupal 8 port.
We don't aim at full AddThis feature support. Much more, we introduce a concept of token based UI editable ShareMessages and have selected AddThis as an easy start.
Our next major milestone of the project is, making the sharing provider pluggable. Our first candidate is the library sharrre.
#2165561: New plugin: sharrre.com
And also, we want to add social share privacy as an option.
#1944454: Add social share privacy support
This is what i suggested to the students in case they are also interested in ShareMessage as an alternative project.

Unsure if collaboration among the modules makes sense.
I think with generalisation, we provide a nice sharing centric solution that possibly supersedes what plain AddThis integration can provide.
On the other hand, i expect ShareMessage is a bad fit for all the non-sharing-related features of AddThis module.

_doyle_’s picture

Not sure if anyone has started on this, but I have some extra time and want to use this on a new D8 site I am throwing together. I have started a D8 port based on 8.0.0-beta12 and would be happy to collaborate if anyone else is working on it.

miro_dietiker’s picture

If you don't have maintainer access, the recommended way of starting a community workflow driven port is pushing to github and posting a link here.
Then people can efficiently fork and do pull requests...
Post periodic updates about the status here. Then a maintainer can chime in once they are available.

So where is your repo and what's the status of progress?

_doyle_’s picture

Thanks miro_dietiker, I will get the code pushed up to a repository and report on the status later tonight.

_doyle_’s picture

Here is the link to the current work I have done for the D8 port of AddThis. https://github.com/doylejd/addthis

I am working through learning D8 as I go, but I think what I have done is a decent start. Feel free to throw out changes or point out if I am setting something up wrong.

Current Status:
Global Configuration - Upgraded to D8 (Basic Settings Completed, Advanced Settings In Progress)
Field Definition - In Progress
Block Definition - In Progress

There is still a lot of work to do on it, but its a start.

_doyle_’s picture

The module port for AddThis has been moved here: https://github.com/d8-contrib-modules/addthis

_doyle_’s picture

The AddThis D8 port is getting close to a usable state. We started to fill up the issue queue if anyone else wants to jump in.

There are a lot of enhancements to get it to where the D7 module is at in terms of extensibility. It would be great if any of the maintainers have time to give it a look and provide feedback/add items to the issue queue. Hoping we can get it back onto the D.O page here shortly.

bwinett’s picture

To make this work accessible to people following the D8 migration statuses of projects (see https://www.drupal.org/project/contrib_tracker), I created issue #2579365: [addthis] AddThis.

miro_dietiker’s picture

Here's a final update from our ShareMessage port:
We have recently added pluggability in ShareMessage and as a result AddThis is just one option.
More options will follow. We even are short before adding an OG only plugin that does not present a public widget at all.

For us, ShareMessage was an important step to better empower Campaigners in Drupal 7 so they can optimise their sharing message for conversion. With Drupal 8, vendor independence is even much more important to work with one tool and still cover customers that are concerned about data privacy and accidentyl vendor lock in during site building.

Dunno about the exact status of the AddThis module. If collaboration is of interest, please report your thoughts in our queue.

gisle’s picture

Category: Feature request » Task

To make any progress on this, we need a co-maintainer that can oversee the completion of this task, including:

  • Apply pull requests (GitHub) or patches (Drupal.org repo).
  • Maintain a roadmap of the porting project.
  • Move it from GitHub and into an 8.x-4.x development branch in the Drupal.org repo.
naveenvalecha’s picture

Here's already a request for co-maintaing the module https://www.drupal.org/node/2788881
let's get this dang in and push the code from github to d.o.

hkirsman’s picture

Hi, naveenvalecha! So I see you are co-maintainer and the code is copied from github. Could you also create dev release? Tx!

hkirsman’s picture

Oh, you just did initial commit with the info file. Could you please add the files to drupal.org

otarza’s picture

Hello everyone,

I see that this discussion is too old, but is anyone going to work on this?

I'm asking because I would like to contribute and collaborate and it would be helpful to outline what needs to be done and how we can proceed.

Thanks.

hkirsman’s picture

miro_dietiker’s picture

Shariff also gets more popular recently:
https://www.drupal.org/project/shariff

In addition, i added a feature request at sharemessage for both shariff and addtoany:
#2876490: New plugin shariff
#2876489: New plugin addtoany?

socialnicheguru’s picture

This was a good module in Drupal 7. I hope it gets ported to Drupal 8