Advertisement
nucklear

Drupal 7 Print only the markup content of a add field.

Jul 8th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. Print only the markup content of a add field.
  2.  
  3. node.tpl
  4.  
  5. <?php print render($content['field_YOURFIELD'][0]['#markup']) ?>
  6.  
  7. hidden the render content of field
  8.  hide($content['field_YOURFIELD']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement