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

flobruit - January 2, 2009 - 21:24
Status:active» needs review

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).

AttachmentSize
advpoll-views.patch 5.86 KB

#2

ChrisKennedy - January 2, 2009 - 23:08

Hey, well done :) To what extent have you tested this with different advpoll settings?

#3

flobruit - January 7, 2009 - 20:40

I only did the "option" value type used by binary polls.

#4

ChrisKennedy - January 25, 2009 - 00:58
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:needs review» patch (to be ported)

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

browlands - June 17, 2009 - 12:13

Any plans to make a version 6 commit for rudementary views integration?

#6

Apollo610 - July 9, 2009 - 17:37

Subscribing - would like to see this in views for D6 as well!

#7

vacilando - July 21, 2009 - 10:29

Subscribing. I need this esp. to be able to show various polls in blocks depending on arguments.

#8

kirbaranov - August 5, 2009 - 20:01

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

travis.hill - November 4, 2009 - 04:40

+1 for "total votes"

 
 

Drupal is a registered trademark of Dries Buytaert.