Display a field above node title in full page view

Public

In this case we render an image field which was added to the webform content type.

Get raw version
php
  1. // Write this into page.tpl.php above the title rendering code :)
  2. // More info: https://api.drupal.org/api/drupal/modules!field!field.module/function/field_view_field/7
  3.  
  4. <?php if ( !empty($node) && $node->type == 'webform') {
  5. print render(field_view_field('node', $node, 'field_logo', array('label'=>'hidden', 'settings' => array('image_style' => 'logo'))));
  6. }
  7. ?>