jQuery Raty (Star Rating) Widgets
The jQuery Raty (Star Rating) Widgets module is yet another module available for Rating.
Unlike modules such as Rate or Fivestar (which are awesome modules!), there is no major voting backend to the Raty module. However, you can still simulate this behavior to a degree since you can use Raty as the input widget for any numeric field on an entity.
jQuery Raty Widgets highlights
- Output any numeric field as a 'stars widget'.
- Use a 'stars widget' as the input for any numeric field or Views exposed filter.
- These are the field types handled:
- number_integer.
- number_decimal.
- number_float.
- list_number.
Installation
This module comes with the jQuery Raty library ready to go! No double downloads for you. If you really feel like it, there is Libraries integration and you can download your own.
How to use
After the Raty module is enabled, all numeric-storage fields will have a new formatter option for Raty.
After the raty_input (sub-)module is enabled:
- All numeric views filters can be output as Raty stars (exposed filter).
- All numeric-storage fields will have a new input widget option for Raty.
Known limitations
Using Raty as an input method (as a Field or as a Views Exposed Filter) requires jQuery 1.7+, due to the use of .on() calls in the Raty library. Because of this, the raty_input module requires the jquery_update module.
Note: you can use Raty as a field formatter with Drupal core's version of jQuery.
Documentation status
This community documentation page about this module is incomplete. More Raty documentation available today is located at these URLs:
- The module's project page.
- The various snippets located at wbotelhos.com (which is huge, but tough to digest).
If you can, and are willing to, please contribute to this Community Documentation, simply by editing this page, and creating chid pages where appropriate.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion