jimie VIP
Total posts: 531
09 Апр 2014 14:40

Hello Sergey

Is it possible to use multiple rating vote criteria for reviews when using "Cobalt - types as comments" ?

rgds

Последние изменения: 11 Апр 2014


Sergey
Total posts: 13,748
09 Апр 2014 16:39

Absolutely.

Enable multiple property rating in Review type and in record you can get rating through rating API and it will be also multiple rating. Every property will have calculation of average value of that property.


jimie VIP
Total posts: 531
09 Апр 2014 19:11

But is it possible to have different rating criteria for each cobalt type where I use it ?

Example:

In a type i let people to rate:

  • Safety
  • Support
  • Salary

and in other type i let people to rate:

  • Income
  • Academis
  • Price

and so on

rgds


Sergey
Total posts: 13,748
10 Апр 2014 06:22

Only if Review type is different. For this you will probably need to create Review type for each listing type.


jimie VIP
Total posts: 531
10 Апр 2014 11:28

Is it possible the person who post a review also to select the ratings he want to give for that listing, directly in the form where he write the review ?

rgds


jimie VIP
Total posts: 531
10 Апр 2014 12:30

Oh my bad, it is already in there :)

thanks, can mark this as solved


jimie VIP
Total posts: 531
10 Апр 2014 16:20

Sergey, can you tell me how do I call the rating api in order to display the detailed rating view ?

with the one in the documentation I was able to display only this:

Total 90 out of 3 votes!

But I`d like to display all the rating criterias I have

rgds


Sergey
Total posts: 13,748
11 Апр 2014 05:27

In article full view

$rating = CobaltApi::renderRating(1, 2, "r.parent_id = ".$this->item->id);
echo $rating['html'];

Where 2 is an ID of the section with ratings and 1 is a type ID of the review.

You can change whole HTML of total rating by editing rating template file views/rating_tmpl/multirating/default.php. Copy this file. Edit it. And in type rating parameters select your new template.

Работает на Cobalt