Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 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

share|improve this answer
    
how can i filter ratingcount only in last week? or last month. for detect trends... and best and attractive in last week? or month? –  saber tabatabaee yazdi Jul 29 '13 at 11:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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