Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Ratings Component

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Level 9

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

View solution in original post

4 Replies

Avatar

Level 9

Hi,

Which version of AEM are you using?

-JK

Avatar

Level 6

Hi,

I am using the version 6.0.

Thanks

Avatar

Correct answer by
Level 9

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

Avatar

Level 6

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