Saturday, May 21, 2011

How to display field_image in node--article.tpl.php with Drupal 7

With Drupal 7, the node type "article" comes with a field_image to upload an image.

To render the body content:
print render($content['body']); 

Then to render the image field:
print render($content['field_image']); 

No comments:

Post a Comment