Posted by swentel on May 22, 2010 at 5:05pm
10 followers
Jump to:
| Project: | AddThis |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
Issue Summary
Hi,
Included is a patch for Display Suite integration into the AddThis module.
Patch is on the 6--2 branch - but should be easily convertable to 6--3 branch (although I haven't checked the main function to create the button)
What it does - expose AddThis button as a DS field into the Node Displays layout screen. It simply implements one hook and a simple function so the button is available for a node type so nothing is changed in the core of this module to make the integration a fact.
Incase you don't know Display Suite: check it out at: http://drupal.org/project/ds and http://drupal.org/project/nd
| Attachment | Size |
|---|---|
| addthis_integration_ds.patch | 1.28 KB |
Comments
#1
Works well.
I had to turn off the "Display on node pages" setting on the AddThis settings page so that it would not display twice on the screen.
Thanks for the patch!
-JV
#2
Thanks. This will be included in 2.10 release.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
I'm not familiar with Display Suite, but I'd welcome a patch for 6.x-3.x if anybody wanted to post one.
#5
Subscribing. Would really like to see this in the 6.x-3x updated module
#6
Hi everyone,
For the time being you can create a field in display suite (Node displays > fields) and put the following code:
<?php//Will display the toolbox with services that are set on the addthis config page
print theme('addthis_toolbox');
?>
or for a button
<?php//Will display a button
print theme('addthis_button');
?>
Edit: this works with AddThis 6.x-3.0-beta1
#7
Is there a patch for the Drupal 7 version?
I included it as block field but would expect it to be there without creating an extra display suite field.