How to enable content rating on the web site |
The content rating web part gives users the possibility of rating a document. It has three default appearance modes:
Stars
Radio-buttons
Drop-down
It is also possible to create other appearance modes by creating your custom controls. These must be placed in ~/CMSAdminControls/ContentRating/Controls/ and inherit from ExtendedControls.AbstractRatingControl.cs, just like the default ones.
You can place the web part on any page of your website to enable users rate the content of this particular page. In the following example, we will add the web part to a news item on the sample Corporate site.
1. Sign in to CMS Desk as administrator (blank password by default). Switch to the Design mode and select News -> Your first news from the content tree.
2. Click the Add web part () icon at the top right corner of the zoneLeft web part zone. Select the Content rating -> Content rating web part and click OK.
3. In the web part properties window, you can set the following specific properties:
For the purposes of this example, it is also advisable to set the value of the Show for document types property to cms.news. This ensures that the web part will be displayed only for the particular news items and not for the list of news on the News section title page.
Enter the values and click OK.
4. Sign out of the administration interface and view the Your first news news item. You should see the web part below the news text as in the screenshot below. Now try rating!
5. If you switch back to CMS Desk and view Properties of the news item, you should see the Rating property on the General tab. This property reflects the current rating of the selected document. All ratings are recalculated to 10 step scale and displayed as stars here, no matter what the settings of the web part are. You can Reset the ratings and even cheat-rate by simply clicking the stars on this page.
|