oldford
Active member
I'm trying to make the rating stars link to the rating window. Basically so you can click on the stars or the "Leave a rating" button and get the same result. (see screenshot below)
I believe the template to edit is
Original code here:
I tried this code with no success:
I believe the template to edit is
xfmg_media_view_macros
around line 233:Original code here:
HTML:
<dd>
<xf:macro template="rating_macros" name="stars_text"
arg-rating="{$mediaItem.rating_avg}"
arg-count="{$mediaItem.rating_count}"
arg-rowClass="ratingStarsRow--textBlock" />
</dd>
I tried this code with no success:
HTML:
<dd>
<a href="{{ link('media/media-ratings/', $media) }}">
<xf:macro template="rating_macros" name="stars_text"
arg-rating="{$mediaItem.rating_avg}"
arg-count="{$mediaItem.rating_count}"
arg-rowClass="ratingStarsRow--textBlock" />
</a>
</dd>