2

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'] ?>
</div>

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 :(

1
1

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.