2

I have got CQWP to display the rating control for items in a video library. I used fldtypes_Ratings.xsl to call the template in my custom Itemstyle.xsl. I managed to show the starts but its not interactive, and can't click on stars.

How do I get the rating control to work on CQWP?

1 Answer 1

1

Rendering Ratings in List View

SharePoint 2010 comes with the following fields for Social Ratings:

  • AverageRating
  • RatingCount

fldtypes_ratings.xsl is used for rendering AverageRating field in List View.

Rendering Ratings in CQWP

Templates from file fldtypes_ratings.xsl could be utilized in CQWP , but in order to make it work properly, some modifications should be applied and here is how:

  1. Prepare Ratings XSL stylesheet for CQWP

    RatingsStyle.xsl

  2. In order to configure CQWP for displaying Social Ratings , the following steps should be accomplished:

Figure 1. CQWP with Ratings

enter image description here


For more details please follow blog post How to to retrieve and display Social Ratings in Content Query web part

1
  • how can i filter ratingcount only in last week? or last month. for detect trends... and best and attractive in last week? or month? Jul 29, 2013 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.