Views integration
lomz - August 30, 2008 - 07:16
| Project: | Advanced Poll |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
Description
I would like to be able to filter polls in views by status, if it is closed or open.

#1
Here's a patch that adds views integration to the advpoll module. The code is mostly based on the views integration of the VotingAPI, but modified to pick up the data from the advpoll module (which differs slightly from the VotingAPI data, even though it's stored in the same table).
#2
Hey, well done :) To what extent have you tested this with different advpoll settings?
#3
I only did the "option" value type used by binary polls.
#4
Okay I went though this, added a little support for {advpoll} fields so you can filters polls by open/closed status, and committed.
http://drupal.org/cvs?commit=166835
#5
Any plans to make a version 6 commit for rudementary views integration?
#6
Subscribing - would like to see this in views for D6 as well!
#7
Subscribing. I need this esp. to be able to show various polls in blocks depending on arguments.
#8
Is there any ability to create additional field/sort criteria/filter in Views for this module? It would be great to have "Total votes" field in Views for node with pollfield applied. Or sort to display 10 most voted polls, for example...
#9
+1 for "total votes"