Problem/Motivation

Allow for a rendering to have its own target share url.

Proposed resolution

By adding a field that can contain the url and have a token inserted to be replaced.

Remaining tasks

User interface changes

Additional field in the widget settings.

API changes

Original report by @ntsekov

I had an issue with Addthis facebook link when I tried to change the link that points to the current page in a Views.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ntsekov’s picture

I made a patch that can specify where to point facebook link in a Vievs, also you can use tokens for this field.

matglas86’s picture

Version: 7.x-4.0-alpha4 » 7.x-4.x-dev
Issue summary: View changes
Status: Active » Needs work

I'd love to check this out. But the patch does not apply. Please rebase your patch against the latest HEAD.

SocialNicheGuru’s picture

patch applied cleanly for me against alpha6 (june 15)

patch -p1 < addthis-change_the_ link-2232083-1.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.addthis.inc b/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.addthis.inc
|index 96b2b78..e6dc814 100644
|--- a/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.addthis.inc
|+++ b/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.addthis.inc
--------------------------
File to patch: ./addthis_displays/addthis_displays.addthis.inc
patching file ./addthis_displays/addthis_displays.addthis.inc
Hunk #2 succeeded at 35 with fuzz 2 (offset 4 lines).
Hunk #3 succeeded at 144 with fuzz 2 (offset 30 lines).
can't find file to patch at input line 39
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.field.inc b/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.field.inc
|index aa0231b..f20ea78 100644
|--- a/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.field.inc
|+++ b/sites/all/modules/contrib/addthis/addthis_displays/addthis_displays.field.inc
--------------------------
File to patch: ./addthis_displays/addthis_displays.field.inc
patching file ./addthis_displays/addthis_displays.field.inc
Hunk #3 succeeded at 101 (offset 4 lines).

SocialNicheGuru’s picture

Is this an issue any more?
I was able to put in the current page token into the block.

how can I reproduce the error?