Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I use <?php print $node->field_name[0]['view']; ?>
I get nothing.
I can do <?php print $node->nid; ?>
, that's fine.
If I do this: <?php print "$node->field_name[0]''view']"; ?>
My node title becomes:
Array[0]['view']
"Array" with a capital "A", eh?
Anyone have any ideas?
Comments
Comment #1
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commented