Random Poll Block Using Drupal Views

So I wanted to create a random polls module.  Polls offers the ability to create a block for the "Most Recent" Poll, but that is it.

Start by creating a new view.

1.) Give it a name.
2.) Showing Content of type Poll
3.) Uncheck Create Page
4.) Check Create Block
5.) Unformatted list of Full Posts
6.) Choose if you want links and comments or not
7.) Choose how many items per page.  I chose 1.
8.) Add any extra filter criteria, taxonomy, active...
9.) Remove the sort criteria
10.) Add new sort criteria and choose: Global: Random

Configure any other options and click save.  Then add the new block to your page using structure>blocks.

Category: 
Share: 

GuardianMS
Guarding your IT Experience!

Add new comment