Closed (fixed)
Project:
Facebook Like Button
Version:
7.x-2.0
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2012 at 19:42 UTC
Updated:
30 Jul 2012 at 07:09 UTC
Hi,
I use Panels for showing my nodes in full mode view, and I am trying to add the "dynamic fb like button" to a pane, but it is not possible since it does not appear in any of the categories that Panels offers.
In the miscellaneous category there is the "Static FB Like button", which is not the same.
Taking a look into the code, I see that the "Dynamic FB Like Button" is only presented to Drupal if node mode view is full. So this must be the problem of the integration with Panels.
Can you add support to this? Maybe a custom function called from the pane (¨New custom content¨ option)?
Thanks
Comments
Comment #1
eldrupalista commentedFor adding the Dynamic FB Like button to a pane, you have to do the following:
1.- Create a custom pane
2.- Add this to the body of the new pane:
<iframe src="https://www.facebook.com/plugins/like.php?href=http://example.com/node/%node:nid&layout=standard&show_faces=hide&width=450px&font=arial&height=80px&action=like&colorscheme=light&locale=en_US" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 450px; height: 80px;" allowTransparency="true"></iframe>Just replace example.com/node/%node:nid with the URL you want.
3.- Do not forget select "Full HTML" filter, and save.
Could you put this somewhere in the documentation?