Now that you know how to create Rate widgets and use them on nodes and comments, let's take a quick look at the rest of the available widget types. We've already used "Number up / down" and "Thumbs up" so, in this video, we'll look at the "Thumbs up / down", "Fivestar", "Emotion", and "Yes / No" widgets. We'll create a custom widget in the next video.
Thumbs up / down
- Go to "Structure => Rate widgets" (admin/structure/rate)
- Widget type: Thumbs up / down
- (Next)
- Title: Would you recommend this?
- Tag: Recommend
- Node Types
- Article: [x] Node
- (Save)
Now, let's take a look at Article #1. At the bottom of the article, we see the "Would you recommend this?" widget and we can click the thumbs up or down.
Now, let's take a look at the Fivestar widget.
Fivestar
- Go to "Structure => Rate widgets" (admin/structure/rate)
- Widget type: Fivestar
- (Next)
- Title: Review this article
- Tag: Review
- Value type: Percentage (This will average the ratings. Points would add them together and Options is used for custom, unrelated options.)
- Options (I'll leave these at their defaults. So, when someone clicks one star, it is like giving a 0%. Two stars equal 25% and each star adds 25% all the way up to 5 stars being equal to 100%.)
- Node Types
- Article: [x] Node
- (Save)
Now, if we view Article #1, we can review the article using the Fivestar widget.
Emotion
- Go to "Structure => Rate widgets" (admin/structure/rate)
- Widget type: Emotion
- (Next)
- Title: How does this article make you feel?
- Tag: Emotion
- Value type: Options
- Options (I'll just use the default options for this example.)
- Node Types
- Article: [x] Node
- (Save)
Now, when we view Article #1, we can rate it based on how it makes us feel.
Yes / no
- Go to "Structure => Rate widgets" (admin/structure/rate)
- Widget type: Yes / no
- (Next)
- Title: Is this article relevant?
- Tag: Relevant
- Value type: Options
- Options (I'll just use the defaults of "yes" and "no".)
- Node Types
- Article: [x] Node
- (Save)
Now, when we view Article #1 we can specify whether or not this article is relevant.
All of these ratings can be utilized by Views to show and/or hide content from listings, which helps only show relevant content to your site visitors. We'll take a look at how to do that in a later video. in this series.
For now, let's take a look at creating a custom rate widget.