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
Comment #1
sijuwi commentedSorry, 'bug' that is.
Comment #2
yched commentedI 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]; ?>Comment #3
sijuwi commentedYes thank you! That did the job.
Comment #4
yched commented:-)
Comment #5
(not verified) commentedComment #6
beckyjohnson commentedwhat does this mean exactly?
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