At this point, we have added a number of Rate widgets to the article content type. In this video, I will show you how to view the voting results, set permissions to allow others to view the results and view the voting results in a chart.
To view the results page, you simply click the "Voting results" tab when viewing the full page node.
Since we have so many widgets attached to Articles, I can scroll down to view them all.
By default only the admin can view the voting results. Let's take a look at the voting results permissions.
- Go to "People => Permissions" (admin/people/permissions)
- Permission: View rate results page
- [x] Authenticated User (Grants authenticated users to view voting results. You might instead want to create a new role for this. But for demonstration purposes, I'll just use Authenticated User.)
- (Save permissions)
Let's switch to safari, and refresh Article #1. Now Chelsea can click the "Voting results" page to see the voting results.
Rate comes with support for the Chart module, so let's install that to see what it can do for us.
- Go to "Modules" (admin/modules) and enable:
- Chart API
- (Save configuration)
Once enabled, we can go to Article #1 and click the voting results tab and see the chart. Here you'll see the number of votes for each option in the last 7 days.
In the next video, we are going to add a Rate widget to a view so that visitors can rate items in that view.