Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
if the average is like 3.7 it will show full 4 stars
it's supposed to show full 3 stars and half a star??
Comment | File | Size | Author |
---|---|---|---|
2017-11-04_230314.jpg | 29.46 KB | abarood |
Comments
Comment #2
System Lord CreditAttribution: System Lord commentedIs it supposed to? I'd like to know this as well.
Comment #3
vdsh CreditAttribution: vdsh commentedI managed to solve this doing the following (in a custom module):
Then in the rating_helper.js:
And then I needed to create a fourth "half star" in my template and update the css (there is probably a possibility to display only half a star from a complete star image in css, but I couldn't make it work)