i am trying to change the field format like title body image


title image title please anyone tell me how to change this fields in node--article.tpl.php


Available variables in tpl:

  • $title: the (sanitized) title of the node.
  • $content: An array of node items. Use render($content) to print them all, or print a subset such as render($content['field_example']). Use hide($content['field_example']) to temporarily suppress the printing of a given element.

Try to do:

 print title; 
 print render($content['field_image']);

Not the answer you're looking for? Browse other questions tagged or ask your own question.