Drupal is a registered trademark of Dries Buytaert

star_rating

No security coverage
View on drupal.org

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

  1. Navigate to /admin/config/star_rating/settings
  2. Select the Webform you created.
  3. Map the Webform's elements (Rating, Comment, and Entity ID)
    to the corresponding fields in the settings form.

3. Place the Block

  1. Go to the Block layout page: /admin/structure/block
  2. Place the "Star Rating" block in the desired region.
  3. It will automatically appear on content pages.

Requirements

Maintainer

Developed and maintained by the Drupal community.

Activity

Total releases
2
First release
Feb 2026
Latest release
2 weeks ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Feb 12, 2026
1.0.x-dev Dev Feb 12, 2026