star_rating
No security coverage
The Star Rating comment module provides a versatile and easy-to-use 5-star rating system for your Drupal website.
It allows users to rate content and provide comments, with powerful Webform integration for storing and managing submission data.
Features
-
5-Star Rating Interface:
A clean and intuitive interface for users to submit ratings. -
Comment Support:
Users can leave a comment along with their rating. -
Webform Integration:
Leverages the power of the Webform module to store rating and comment data,
allowing for flexibility in data capture and management.
Display Blocks
-
Star Rating Block:
The main block to display the rating widget. -
Star Rating Summary Block:
Shows a detailed breakdown of ratings
(e.g., how many 5-star, 4-star, etc., ratings). -
Star Rating Average Block:
A read-only block that displays the average rating
for a piece of content.
Extra Field
-
Star Rating Average:
Provides an "extra field" that can be enabled on any content type
to display the average rating directly with the content.
Flexible Configuration
-
A settings page to map the rating fields to a specific Webform
and its elements.
Use Cases
- Rating articles, blog posts, or other content.
- Product reviews for e-commerce sites.
- Feedback on services or resources.
Post-Installation
1. Create a Webform
Before using the Star Rating module, you need to create a Webform to store the rating data.
This Webform should include the following fields:
-
Rating:
(e.g., a Radios or Scale element with values from 1 to 5) -
Comment:
(e.g., a Textarea element) -
Entity ID:
(e.g., a Hidden or Textfield element that will store the ID
of the content being rated)
2. Configure Star Rating Settings
- Navigate to
/admin/config/star_rating/settings - Select the Webform you created.
-
Map the Webform's elements (Rating, Comment, and Entity ID)
to the corresponding fields in the settings form.
3. Place the Block
- Go to the Block layout page:
/admin/structure/block - Place the "Star Rating" block in the desired region.
- It will automatically appear on content pages.
Requirements
- Drupal 10
- Webform module
Maintainer
Developed and maintained by the Drupal community.