I have defined a cck field but I don't want it to be printed out in posts body.
I print body in this way:
<?php print $node->body; ?>
but cck filed still exists. I want to use value of that field for some other purpose.
any ideas?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityIf you look at the Display Fields in CCK, eg www.yourhost.com/admin/content/node-type/NODETYPE/display
, you can exclude fields from the $content
variable that is passed to the node template. I'd look into that and use $content
instead of $node->body
if it isn't excluded from there as well.