Active
Project:
Advanced Poll
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2013 at 10:44 UTC
Updated:
17 May 2015 at 10:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
iadegesso commentedSame need. Is there a way to format an advanced poll with panels?
Comment #2
pavlosdanI needed to display advpoll content with Panels as well but the fields being made available in "Node" were not displaying the full Poll widget with the Ajax functionality etc.
What I did to make the Poll show up and work in panels was:
In a custom module you can define a ctools content plugin as described here: http://internetdevels.com/blog/ctools-content-type. Thanks @brunodbo for the link and idea.
Then in your plugin file enter the following:
The above will make an advpoll plugin available in the Node category of Panels. Adding that on your Panel overriden node will make the AdvPoll show up in your node. The code for the render part of this to make the poll appear was taken and adapted from hook_node_view of advpoll.module.
Comment #3
tchase commentedThis worked great for me for "approval" voting behavior, but it does not work for the ranking poll behaviors. I'm not a php programmer (had a colleague make the module described above for me), so I apologize if the solution is obvious. Is there a tweak to the above for ranking polls I can do, or is this much more complicated? Thanks.
Comment #4
tchase commentedAttached is a solution to #3 following the same procedure in #2 by incorporating the advpoll_ranking_node_view code from the advpoll_ranking.module into the same ctools-content-type outlined above.
Comment #5
tripper54 commentedRolling this into the respective modules makes sense.
Patches welcome!
Comment #6
tripper54 commented