API Questions on Kentico API.
Version 6.x > API > Rating Control Value Store in custom table of database View modes: 
User avatar
Member
Member
patel_divyesh8252-yahoo.co - 10/11/2013 5:44:01 AM
   
Rating Control Value Store in custom table of database
Hi Guys,

I am using kentico cms 6.0.

In my website i want to use functionality like any user can give review about particular product using "CONTENT RATING CONTROL" with different criteria.

i apply content rating control in Transformation and it is working fine

but the problem is that how can i get how many stars/rating given by user for particular criteria of product

for example :

Quality of product : 2 stars
Services of company : 5 stars
look/Design of product : 5 stars
etc....


and i also want to store this rating value into database.

or can you please answer me exactly where this rating value is stores ????

or which property of content rating control is store the value of Rating like (1,2,3,4,5...)

It is Possible or not using kentico Content rating control???

Best Regards,
Divyesh Patel

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 10/17/2013 7:57:01 AM
   
RE:Rating Control Value Store in custom table of database
You should be able to use the \CMSAdminControls\ContentRating\RatingControl.ascx control. Look at the LogActivity(double) method. This is where the "action" happens. In there is where you would perform your saving to the database. By default, the method logs the activity on the document the control is placed on in the content tree. So if you want to have it go to a custom table then you need to make a copy of this control and customize it as needed.