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.
Hi,
I found that the markup to display the ratings using the contributed module fivestar is incorrect (aggregateRating, ratingValue, ratingCount should be used instead of aggregateReview, average and count). I changed it and now it's working in the Google rich snippet tool.
I'd like if some maintainer could take look and review it.
Additionally I created the markup for for best and worst ratings.
I attach here the modified version.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2239323-AggregateReview-to-AggregateRating.patch | 1.42 KB | frankye |
schemaorg_contrib.fivestar.txt | 1.63 KB | valery86 |
Comments
Comment #1
frankye CreditAttribution: frankye commentedI attach a patch to change the module.
BestRating data and worstRating I have not used, because these data as default.
Comment #2
scor CreditAttribution: scor commentedThanks @frankye for the patch and @valery86 for the bug report!