Ratings Component | Community
Skip to main content
francisco_ribei
New Participant
October 16, 2015
Solved

Ratings Component

  • October 16, 2015
  • 4 replies
  • 1054 views

Hi,

I'd like to know if the Ratings OOTB components display the total of ratings made.

I saw the value but it is hidden.

Is this the expected behavior of this component?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JK_Kendall

To be honest, I'm not sure of the intention.  The Rating component is integrated into other features, like Reviews, and so I'm guessing the default is to keep it simple.

But notice, if you select the "x out of 5 stars" line, it should toggle open a histogram which shows the count.

If you're comfortable with scripting languages, have a look at the Community Components guide on your localhost instance, e.g.

  http://localhost:4502/content/community-components/en/rating.html

You can play with the HBS template. 

 Hope this helps.

This image is from using http://localhost:4503/content/community-components/en/rating.html

signing in as a demo user

selecting 4 stars

signing out

selecting the text "4.00 out of 5 stars"

[img]rating-histogram.png[/img]

- JK

4 replies

JK_Kendall
New Participant
October 16, 2015

Hi,

Which version of AEM are you using?

-JK

francisco_ribei
New Participant
October 16, 2015

Hi,

I am using the version 6.0.

Thanks

JK_Kendall
JK_KendallAccepted solution
New Participant
October 16, 2015

To be honest, I'm not sure of the intention.  The Rating component is integrated into other features, like Reviews, and so I'm guessing the default is to keep it simple.

But notice, if you select the "x out of 5 stars" line, it should toggle open a histogram which shows the count.

If you're comfortable with scripting languages, have a look at the Community Components guide on your localhost instance, e.g.

  http://localhost:4502/content/community-components/en/rating.html

You can play with the HBS template. 

 Hope this helps.

This image is from using http://localhost:4503/content/community-components/en/rating.html

signing in as a demo user

selecting 4 stars

signing out

selecting the text "4.00 out of 5 stars"

[img]rating-histogram.png[/img]

- JK

francisco_ribei
New Participant
October 16, 2015

That's exactly what I wanted.

I noticed in the code that it was print in the HTML the total count, but I was unable to see it.

Thank you so much