I am using Computed Field to get some values;
I have a Template node that holds an Entity Reference multivalues field to a series of other nodes, all referenced nodes of the same type. The referenced nodes have a text field which value I need to get.
Until now I've managed to get the "target_id" of the referenced nodes, but I can't manage to get the values:
$tpl = field_get_items($entity_type, $entity, 'field_plan_tpl_select_trainings');
$nids = array();
foreach ($tpl as $field_item) {
$nids[] = $field_item['target_id'];
}
What is the next step in order to get the values of a specific field for all the referenced nodes? I mention that the field has only one value.