This was not an issue in drupal 5.

now in six I can't display information from other nodes using nodereference.
The only fields I can display are text fields...

I can't display images, taxonomy or lists...

here is my code...
// I am referencing come Client info
$clientref = node_load($node->field_clienttreference[0][nid]);
print $clientref->field_client_title[0][value]; // this works and I can pull the first name
print $clientref->field_city[0][value]; // nothing shows up (this is coming from taxonomy list
print $clientref->field_logo[0][value]; //nothing shows up here too
print $clientref->field_contacts[0][value]; //this is from a list of multiple names - nothing shows up either

so as u can see I am stuck & I have been looking for an answer for a while now.
This can be achieved using views but I don't want to manage another views if I can achieve it using this

Thanks again
Regards

CommentFileSizeAuthor
#2 results.txt2.16 KBOghnia
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

can you tell me what you get from this printout

print '$clientref = <pre>' . print_r($clientref, TRUE) .'</pre>';

please attach a text file with the resulting html... whatever comes between the <pre> tags

Oghnia’s picture

FileSize
2.16 KB

Here are the results

jrglasgow’s picture

it looks to me like the node that is being loaded is of the wrong node type. I see that the $node->type = event_locations and since most of the fields that you have listed are not there my guess is that the wrong node got referenced.

Oghnia’s picture

OH boy,
sorry about that, but that node reference also has issues,,,
for example the city referenced in from a location field that gets its info from taxonomy.

if I reference the taxonomy I will get the taxonomy # but not the term.

I also have issues where the field has multiple selected items - it shows nothing...