jQuery Raty (Star Rating) Widgets
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Update 12-23-2013 7.x-1.x-dev
Now wielding more of the power from the Raty library.
Can now assign custom images for on/off/half star states*.
*This is only for raty field output so far. Custom images for input to come later.
*Only in -dev version currently.
Overview
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.
Why Raty?
Raty is designed to be an immediate, zero-config option to either display stars from any numeric field or use them as field input widgets.
Unlike Rate & Fivestar (which are awesome modules!), there is no voting back-end to Raty. However, you could still achieve this behavior since you can use Raty as the input widget for any numeric field on an entity.
Also, Raty does not create any DB tables.
Use Cases
- If you want a quick, no-config needed field formatter to output stars.
- Output any numeric field as stars.
- Use a 'stars widget' as input for any numeric field.
- Use a 'stars widget' as input for any numeric Views filter.
Set Up / Config
After enabling raty:
- All numeric-storage fields will have a new formatter option for Raty.
After enabling raty_input:
- 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.
Limitations / Special Requirements
Using Raty as an input method (not the output formatter) requires jQuery 1.7+.
Because of this, the raty_input module requires the jquery_update module.
You can use Raty as a field formatter with Drupal core's version of jQuery and no special action required, just turn it on & choose field output as Raty.
Similar Projects
Author info
jQuery Raty library by Washington Botelho http://wbotelhos.com/raty
Read more at http://drastikbydesign.com
