Hello,
I'm sorry but I still have issues in trying to make work
a type for publishing ratings/comments for another type
you may test here
http://www.alkemica.net/operatori-olistici/voce/19-associazioni/101-associazione-culturale-spaziolistico-mukthi
issue 1:
when I submit a review, I select some stars, when I save it I am redirected to the record I just reviewed and I can see my review below it but... no stars are being selected, they are all empty (like no vote has been submitted)
at this point if I select again the stars directly on my review (not opening it for editing) and I refresh the page, then the selected stars are being saved correctly
issue 2:
I am usign the rating API to display the number of votes and the votes html near the record title (go here and look near the title at the top of the page) and in the records list
but when I submit a new review the votes number and html are not being counted and displaied in the record full view, while they are correctly counted and displaied in the record list, eg here http://www.alkemica.net/operatori-olistici/cat/6-olistico/19-associazioni
to display the rating in the record full view I am using this code
<?php $rating = CobaltApi::renderRating(15, 6, "r.parent = 'com_cobalt' AND r.parent_id = " . $item->id);?>
<div class="rating-city-container">
<?php /*?>rating<?php */?>
<div class="vote-num">
<div class="vote-number"><?php echo $rating['num'] ?></div>
<div>recensioni</div>
<div><?php echo $rating['html'] ?></div>
</div>
to display the rating in the record LIST view (which is woking) I am using this code
<div class="content_rating rating-float-left">
<?php $rating = CobaltApi::renderRating(15, 6, "r.parent = 'com_cobalt' AND r.parent_id = " . $item->id);?>
<?php echo $rating['html'] ?> - <?php echo $rating['num'] ?> voti
</div>
I also attach the 2 templates I am using (full view - list view)
operatori-templates
Hello, I'm sorry but I still have issues in trying to make work a type for publishing ratings/comments for another type
you may test here http://www.alkemica.net/operatori-olistici/voce/19-associazioni/101-associazione-culturale-spaziolistico-mukthi
issue 1:
when I submit a review, I select some stars, when I save it I am redirected to the record I just reviewed and I can see my review below it but... no stars are being selected, they are all empty (like no vote has been submitted)
at this point if I select again the stars directly on my review (not opening it for editing) and I refresh the page, then the selected stars are being saved correctly
issue 2:
I am usign the rating API to display the number of votes and the votes html near the record title (go here and look near the title at the top of the page) and in the records list
but when I submit a new review the votes number and html are not being counted and displaied in the record full view, while they are correctly counted and displaied in the record list, eg here http://www.alkemica.net/operatori-olistici/cat/6-olistico/19-associazioni
to display the rating in the record full view I am using this code
to display the rating in the record LIST view (which is woking) I am using this code
I also attach the 2 templates I am using (full view - list view)
operatori-templates