Drupal 6: getting particular fields from Node Reference types...

Posted by artmania on Stack Overflow See other posts from Stack Overflow or by artmania
Published on 2010-06-03T11:36:14Z Indexed on 2010/06/03 11:54 UTC
Read the original article Hit count: 218

Filed under:
|
|
|
|

Hi friends,

I'm a drupal newbie...

<?php print $node->field_date[0]['view']; ?>

I can get the custom created CCK fields' value and display in tpl.php files as above... that's fine.

my question is how can I get the Node reference fields' in-fields? for example, I have an event content type, and I have defined Node Reference for Location (title, address, img, etc.). When I write the code below, it displays all location content;

<?php print $node->field_location[0]['view']; ?>

but I need to get only address field from this location content type. sth like below would be great :D but not working;

<?php print $node->field_location[0]['field_address']['view']; ?>

so how can get that? appreciate helps so much! thanks a lot!

© Stack Overflow or respective owner

Related posts about drupal

Related posts about drupal-6