I've been using the following code in my node-content-content_type_name.tpl.php
<?php print $node->field_name[view]; ?>
However nothing shows up. I've tried all the syntax variations but nothing will bring the field in. Is this a big or is there some other explanation?

Note: this is a clean install of 4.7rc3 and cvs cck.

Comments

sijuwi’s picture

Sorry, 'bug' that is.

yched’s picture

Category: bug » support

I think you should try
<?php print $node->field_name[0][view]; ?>
and more generally for multiple-value fields :
<?php print $node->field_name[_the required delta_][view]; ?>

sijuwi’s picture

Yes thank you! That did the job.

yched’s picture

Status: Active » Fixed

:-)

Anonymous’s picture

Status: Fixed » Closed (fixed)
beckyjohnson’s picture

Status: Closed (fixed) » Active

what does this mean exactly?

<?php print $node->field_name[_the required delta_][view]; ?>

I was looking at my node reference field using devel themer and i have no idea what to put in the required delta brackets to amek this work and print out my multiple values....

Becky