Hi,
I have a cck-content type and want to get the text of a cck-list-object in computed-field.
The field I want to populate is a nodereference field.
I have no problems to get the ID of the referenced node from the cck-nodereferenece-field but can't manage to get the displayed text / value.
Putting this code in the code-section works fine
$node_field[0]['value'] = $node->field_patientenbezug['0']['nid'];
displaying it with
$display = $node_field_item['view'];
But this returns the nid of the referenced node and I need the displayed text (the title of the referenced node).
Neither
$node_field[0]['value'] = $node->field_patientenbezug['0']['view'];
nor
$node_field[0]['value'] = $node->field_patientenbezug['0']['value'];
works
Output is empty ;-(
What is wrong here? Any tipps?
Kind regards
Kai
Comments
Comment #1
mmjvb commented