I'm attempting to build custom template for specific content type.
So, I created node--my-content-type.tpl.php
and tried to write some text: it works!
Ok, now I want to render my fields. I have $content['field_title']
, field_author
, field_cast
(is a field collection) etc.
I need values of these fields, so I tried to assign some variables:
$title = $content['field_title']['value']
etc, but it doesn't seem to work.
I can only call render function to render these fields, but I want to format page in custom mode.
How can I get field info in order to use correct values? Thanks!