I've created a custom node (node--CONTENT_TYPE.tpl.php) where I print the fields my way. For example,

<div class="test">
   <?PHP echo $content['field_tipsol']['#title'].":".$content['field_tipsol']['#items'][0]['value'] ?>

My problem is I can't see titles for the empty fields. How could I retrieve this information? It doesn't appear in $content array :(


Try doing a var_dump of $content and see what shows up. Var_dump specifies what it's being returned even if it's boolean, empty, null, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.