Closed (fixed)
Project:
Fivestar
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2012 at 14:48 UTC
Updated:
12 Feb 2012 at 15:10 UTC
I know this was covered in an earlier issue, but I can't seem to get it to work. I want to place the Fivestar widget in different places in a couple on tpl's, and I tried the approach in another issue.
<?php
print render($content['field_stars']);
?>
..
..
..
<?php
hide($content['field_stars']);
hide($content['comments']);
hide($content['links']);
print render($content);
?>
I was trying to add it in near the title in the above example. This isn't working at all. Is $content['field_stars'] the wrong way to call it?
Comments
Comment #1
wxman commentedSorry, I spoke too soon. I did a var_dump($content) and found it as $content['field_star_rating']. Now I can move it around.