1

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?

2

If 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.

  • Thanks Jimajamma, Is this for Drupal 6? – Zim3r Nov 2 '12 at 6:48
  • 1
    yep, this works for Drupal 6. – Jimajamma Nov 2 '12 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.