See #1382470: Content is right aligned for background information.

This theme applies special theming logic to any content type that contains a field named "field_image" regardless of the field type and regardless of whether or not the field is empty. The template.php file should be modified such that the logic is applied only if the field is populated, and only if the field is an "image" field.

Existing code in touchpro_preprocess_node():

  if (isset($vars['field_image'])) {
    $vars['classes_array'][] = 'node-imagefield';
  }

Recommended change:

  if (!empty($vars['field_image']) && 
        $vars['elements']['field_image']['#field_type'] == 'image') {
    $vars['classes_array'][] = 'node-imagefield';
  }

Comments

JurriaanRoelofs’s picture

Status: Active » Fixed

fix

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Corrected format of reference to related issue.