Commanding Chaos for Coworking, Open Source and Creative Communities

7 - views and contextual filters with entity reference field - Drupal Answers

Fri, 06/29/2012 - 11:40 -- rprice

the 'right way' to do this is to work with entity approach and avoid the ['und'][0] business but I never got it to work in views. i.e. code $node=menu_get_object(); $field = field_get_items('node', $node, 'field_event_artistref'); return field_view_value('node', $node, 'field_name', $field['target_id']); code. Here's a link I was following on the topic…