Closed (fixed)
Project:
AddToAny Share Buttons
Version:
7.x-4.0
Component:
Code
Priority:
Normal
Category:
Feature request
Reporter:
Created:
23 May 2012 at 10:03 UTC
Updated:
24 Jul 2019 at 09:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
loominade commentedComment #2
Anonymous (not verified) commentedThere's a bug when you use the ds-field to render the share-button. The $node-object used by the _addtoany_create_button() function has another structure then the object from the ds-field. You have to add a function that only provides a real $node-object.
Comment #3
Anonymous (not verified) commentedHere is my patch
Comment #4
Anonymous (not verified) commentedsorry for the emtpy file
Comment #5
yannickooI removed the unnecessary changes in your patch.
Comment #6
torsti commentedWorks for me - Thanks!
Comment #7
llillf commentedHi Torsti,
It seems not work for me. Could let me know which patch above you tried and the version of your Display Suite and Addtoany?
Thanks a lot!
Comment #8
rcodinaPatch on #5 works for me.
Display Suite 7.x-2.6
AddToAny 7.x-4.5
Could anyone test this and if it's ok mark this issue as Reviewed? Thank you!
Comment #9
mandreato commentedPatch #5 works for me too.
Display Suite 7.x-2.6
Share Buttons by AddToAny 7.x-4.5
Comment #10
micropat commentedImplemented in 7.x-4.6. Thanks for the patches!
Comment #12
rcodinaPlease, checkout new related issue: https://www.drupal.org/node/2418423
Comment #13
RAWDESK commentedI just noticed this ds integration is far from completed.
Tried to use the Expert template as illustrated in attached screenshot addtoany_ds_expert_template.png , but none of the settings are applied when rendering "the button".
Service buttons html code is set as follows at admin/config/services/addtoany :
Notice the h2 header which is untranslatable with i18n, something ds supports out of the box.
Everything remains wrapped inside the following span :
which to my honest opinion is not the appropriate html tag for wrapping.
I guess the included js logic is preventing ds to do its work properly.