Hi there!

Quick question, I`m using the AGGREGATERATING feature and noticed that the total rating count is displayed as "ratingCount" instead of "reviewCount". Google seems to dispaly ratingCount as "votes", while reviewCount as "reviews". I would prefer the later.

Any advise how to change this?

Thank you.

Comments

hilrap created an issue. See original summary.

christophweber’s picture

Interesting observation regarding the two value types. Per Google one or the other is required. Not sure what happens in terms of search snippet enhancements when you supply both, but the JSON-LD validates. The preferred solution would be to add a field for reviewCount input with appropriate guidance text so people can choose either one or both.

christophweber’s picture

StatusFileSize
new1.29 KB

Here's a patch against HEAD to add reviewCount.

christophweber’s picture

Assigned: Unassigned » christophweber
Status: Active » Needs review
christophweber’s picture

If Google's snippet preview (available from the structured data testing tool) is to be believed, this is how things pan out:

  • Supply ratingCount AND reviewCount - votes are displayed (i.e. ratingCount)
  • Supply only ratingCount - votes are displayed
  • Supply only reviewCount - reviews are displayed
hilrap’s picture

Thank you for the great patch! Ratings are now displayed as "reviews". It works 100% :)

damienmckenna’s picture

Assigned: christophweber » Unassigned
thejimbirch’s picture

Status: Needs review » Closed (won't fix)

Closing this issue as Drupal 7 is no longer supported.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.