I've set up a group of fields in CCK and i want it to be printed inside a node just like the tags they entered whenever they created a story. How would i go about that.

thanks

Comments

Jeff Burnz’s picture

you could try something like this, though from your question its not entirely clear what you are after...

untested...

foreach($node->content['group_mygroup'] as $key => $groupfield) {
  if ($groupfield['#value']) {
    print $groupfield['#value'];
  }
}
chrislabeard’s picture

yeah sorry not too specific im using drigg for a digg type setup and when people submit a story i wanted them to be able to put where it was so i went into cck and made a location group with city state and zip so after they post it i want it to be displayed on the node the location. Help thats alittle better of what im trying to do, thanks .

Ideas by Nature
www.ideasbynature.com

Jeff Burnz’s picture

I normally do this sort of thing by field, here's a good start, search around, there's heaps of info on this...

http://drupal.org/node/62466