Hide & Print in .tpl files

Use this code to hide a specified field in Drupal theme files ".tpl "

  1. <?php
  2. hide($content['field_name']);
  3. ?>

Use this code to render a specified field in Drupal theme files ".tpl "

  1. <?php
  2. print render($content['field_name']);
  3. ?>


Article Information
Article ID Categories Tags Levels Status
#4
Free
Solved