Drupal - Grabbing and Looping NID of CCK Nodereference field

Posted by GaxZE on Stack Overflow See other posts from Stack Overflow or by GaxZE
Published on 2010-03-19T12:16:15Z Indexed on 2010/03/19 12:21 UTC
Read the original article Hit count: 513

Filed under:
|
|
|
|

Hello,

cant seem to work out how i grab multiple nids of a node reference field.

$node->field_name[0]['nid'] picks up the node id of the cck node reference field.

however when that cck node reference field has more than one value i get stuck!

my php is abit sketchy atm so working with arrays and loops is being quite difficult!

here is my code:

field_industry as $item) { ?>

  • ">
  • © Stack Overflow or respective owner

    Related posts about drupal-6

    Related posts about cck