Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I cannot get the share widget to show on node pages that us panel pages.
I have looked in widgets and miscellaneous in the panel page content categories.
How can I add this to panel pages?
Comments
Comment #1
JeniferTucker CreditAttribution: JeniferTucker commentedHaving the same problem... anyone help? Assumed it would appear in the 'widgets' to select from.
Comment #2
lolandese CreditAttribution: lolandese commentedA temporary work-around independent from the module.
Next step would be to use the URL alias instead of the nid. Any suggestions?
A working demo.
If instead you want to generate a FB button in a View, go here.
Comment #3
Summit CreditAttribution: Summit commentedSubscribing, anyone has a native panels solution?
greetings,
Martijn
Comment #4
itserich CreditAttribution: itserich commentedThis button looks great but I also use panels.
Comment #5
baff CreditAttribution: baff commentedI tried the code in #2 - but I think there is a bug in it
Comment #6
lolandese CreditAttribution: lolandese commented@ baff: More specifically?
Comment #7
baff CreditAttribution: baff commentedIt is working. had to manually clean the code after pasting - this comes I think with the copy and paste procedure where some spaces get lost.
Comment #8
boardyuk CreditAttribution: boardyuk commentedI know it's been a while since this was last posted in but just thought I'd share how to get URL aliases working in the buttons, I'm using a modified version of #2 with the code being as follows -
That uses Drupals url() function to find the alias of the node.
Simple really :-)
Comment #9
lolandese CreditAttribution: lolandese commented#8: Tested. Also in D6 it works. Thanks for sharing. Enjoy the blue, Boardy.
Comment #10
matteblacke CreditAttribution: matteblacke commentedThis is killing the Javascript for a Google maps CCK (Gmaps) on the same page, any idea why?
Comment #11
matteblacke CreditAttribution: matteblacke commentedUsing Jquery to append the script tag seems to have fixed the problem, no idea why though
$('head').append("");Comment #12
eidoscomBetter if you use this code: