Active
Project:
Vote Up/Down
Version:
7.x-2.x-dev
Component:
vud_field
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2011 at 00:19 UTC
Updated:
29 May 2017 at 16:51 UTC
Jump to comment: Most recent
Comments
Comment #1
marvil07 commentedI've never really tried that, but maybe you can use some of the information on #476746: Expose widgets to panels.
Comment #2
brunodboI was trying to add the widget as a field in panels, like you can add the node title, body, ... rather than creating a separate content type for it (although that would indeed also be an option). I noticed Fivestar does this (ie. you can add a Fivestar widget as a content type without needing to create one yourself), and thought it would be neat if this module could also do that.
I did some digging today, and I think that the reason why the widget isn't being displayed in Panels is because CTools is missing formatter settings. If you look in ctools/plugins/content_types/entity_context/entity_field.inc (which turns an entity's fields into content types), line 118, there is:
For the 'Vote Up/Down' widget I added, $field_settings doesn't contain a settings array, which (should?) come from ctools_fields_get_field_formatter_settings_form() on line 193 of entity_field.inc.
I'm not sure if CTools' entity_field.inc requires an implementation of hook_field_formatter_settings_form() (in vud_field.module) to be able to do this, but I'm guessing this may be the case.
Comment #3
brunodboChanging title to avoid confusion with vud_node module.
Comment #4
marvil07 commentedPatches welcome.
Comment #5
marvil07 commented