eternalistic
8/30/2013 - 10:50 PM

Drupal - Views: Fields

Drupal - Views: Fields

<?php
  print print_r(array_keys($fields), 1);

  // Or if you have the developer module installed
  dsm(array_keys($fields));
?>

<?php if (isset($fields['field_employee_portrait']->content)): ?>
<div class="author-photo">
  <?php print $fields['field_employee_portrait']->content; ?>
</div>
<?php endif; ?>