Commanding Chaos for Coworking, Open Source and Creative Communities

nodereference

Node access user reference | drupal.org

Mon, 09/17/2012 - 10:57 -- rprice

Gives content access permissions to users for content that references the users with User reference or Entity reference.

This is great if you want your content authors to be able to choose additional authors, or choose who can view their content, as well as being able to display the list of authors or viewers within your content, or in views displays.

content
access_control
users
nodereference
drupaleasypodcast

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

Fri, 06/29/2012 - 08: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 computerminds.co.uk/articles/…

nodereference
arguments
php
tips
views
drupaleasypodcast
Subscribe to RSS - nodereference