frankyonnetti
7/7/2013 - 8:05 PM

#drupal 6 print CCK field

Drupal 6 - print CCK field #drupal #d6

<?php if(isset($node->field_NAME[0]['value']) && $node->field_NAME[0]['value'] != ''): ?>
  <div class="name">
  <?php print $node->field_NAME[0]['value'] ?>
    
    <!-- OR -->
  
  <?php print content_format('field_NAME', $field_NAME[0]); ?>
  </div>
<?php endif; ?>