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
Comment | File | Size | Author |
---|---|---|---|
#2 | results.txt | 2.16 KB | Oghnia |
Comments
Comment #1
jrglasgow CreditAttribution: jrglasgow commentedcan you tell me what you get from this printout
please attach a text file with the resulting html... whatever comes between the
<pre>
tagsComment #2
Oghnia CreditAttribution: Oghnia commentedHere are the results
Comment #3
jrglasgow CreditAttribution: jrglasgow commentedit 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.
Comment #4
Oghnia CreditAttribution: Oghnia commentedOH 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...