directy VIP
Total posts: 51
28 Нояб 2015 15:51

Hi, i'd like to show multi rating in article view but only the total rating in list view. Is there a way to do it? thanks marco

Последние изменения: 07 Дек 2015


Sergey
Total posts: 13,748
29 Нояб 2015 06:13

You can calculate total rating in the list template based on $item->votes_result

echo RatingHelp::loadRating('tick', $item->votes_result, $item->id, 500, '', false)

directy VIP
Total posts: 51
03 Дек 2015 19:33

i tried with this but it does not work... is correct? i need to write something else?

<?php echo RatingHelp::loadRating('tick', $item->votes_result, $item->id, 500, '', false)?>


Sergey
Total posts: 13,748
07 Дек 2015 11:35

DOes it show any error? What is in var_dump($item->votes_result)? Do you add this ot correct template you are using?

Работает на Cobalt