tags:

views:

52

answers:

1

Hi,

I'm trying to print CCK field in my node.tpl.php -file like this; print $node->field_name_here[0]['view']; But when I navigate to that page, I can't see the contents. Even when i use print_r($node); I can't see any info about the variable. Drupal only renders everything else in node.tpl.php -file.

BUT... if I stop the execution of node.tpl.php by putting die(); anywhere after the print_r() or print $node->field_name_here[0]['view']; the CCK field / variable renders as it should.

It's not issue with permission since I have allowed all users to see the contents of these fields. I even tried to disable and uninstall CCK field permissions -module, but still can't print CCK fields in my template properly.

What am I missing here?

A: 

check in the content type display tab. example.com/admin/content/node-type/{content-type}/display

There is a good chance that the display for the field you are trying to work with is set to none the checkbox of "exclude" is checked.

mirzu