Closed (fixed)
Project:
Facebook Like Button
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2012 at 05:21 UTC
Updated:
4 Dec 2012 at 16:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
doomed commentedYeah, that's it. It's not compatible with the Drupal Suite.
I just confirmed with one of my content types that DO NOT use Display Suite and there it is the Facebook like button.
Too bad, i'll have to drop it.
Comment #2
doomed commentedrequesting as a feature
Comment #3
vidorado commentedDisplay suite can manage fields written to the node object by other modules, as Facebook Like Button does. Simply go to "Structure > Display Suite > Extras > Extra fields" and enable them. Then you have to add a field for each node type you want:
node|<your_node_type_1>|fblikebutton_field
node|<your_node_type_2>|fblikebutton_field
...
After that, you will have the new field in the "manage display" page.
Hope that helps!
Comment #4
pavimal commentedHi i have the same problem. According to the solution #3 I don't see the Extras under Structure > Display Suite > where can i find it and how can we solve this problem?
Comment #5
Anonymous (not verified) commentedI've added a display suite field for the dynamic facebook button. Now you get an extra field that you can position in your layout where you want the dynamic button.
Just add this code to the .module file:
It's probably also good to write a get_settings() function as too many functions build up the same configuration variable now, but that's outside the scope of this issue ;)
Comment #6
lliss commentedLooks good. Anyone tested this yet?
Also, totally agree about the get settings function.
Comment #7
jonhattanRemoved
_bl_in the variable names and converted it into a patch against 7.x-2.x.I suggest to refactor the population of
$conf = array(...)to a factory in a follow up issue.This implementation is working nice. Not RTBC'ing it since I'm attaching a patch here.
Comment #8
lliss commentedI'm having trouble seeing how this is supposed to work. I might need to read up on display suite a bit more. In the meantime can you give a rundown of how to test this? The display suite settings are kind of all over the place and switching the radios at
admin/config/fblikebutton/dynamicalters what options are available.
Comment #9
jonhattanHere's a new patch including several improvements.
Comment #10
jonhattanTo see it working you need to enable ds and ds_ui and follow the steps in the attached screenshots:
1. go to
admin/structure/types/manage/CT/displayand make it ds aware by choosing a ds layout.2. you will see the ds field for fblikebutton available (ds fields are presentation only, that is, only available in "Manage display")).
Note the field is only available for content types with fblikebutton enabled.
Also, working with ds makes those settings unnecessary:
* Where do you want to show the Like button (full node view)?
* Where do you want to show the Like button on teasers?
Comment #11
lliss commentedThanks for the great work on this. I've added this to the module.
Comment #12
lliss commentedComment #13
jonhattanI don't see this added to the module :)
Do you want me to reroll the patch over 7.x-2.x-themeable branch?
Comment #14
lliss commentedIt's in the 7.x-2.x-dev version that is dated 14 Nov. And as always in git. Please check again.
Comment #15
jonhattanYou're absolutely right. Thanks!