Closed (fixed)
Project:
References
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2011 at 18:53 UTC
Updated:
15 Oct 2011 at 16:21 UTC
I'll admit right off that this is a duplicate post b/c I don't know the appropriate que to post this issue in: http://drupal.org/node/1289166
I'll summarize in this version:
I have a node reference field that uses a view to serve results. How do I filter the results to show only nodes the user has created or has access to via groups they are a member of.
Thanks ahead of time - really stuck on this one....
Comments
Comment #1
karens commentedAdd a relationship to the node author to the view, then add a contextual filter that uses the node author relationship for the values you want to control. Set the filter up to use a default value and set default value to be the current user.
Comment #2
karens commentedAnd you won't be able to control anything based on 'the groups they are a member of'. The D7 version of Organic Groups is missing that ability. But that's an OG issue, see #1238186: Can't build views relationship from a group entity to its base entity.
Comment #3
CarbonPig commentedThank you @KarenS - nice clear suggestions and good links - this is why I love the Drupal community - You Rock!
Comment #4
MGParisi commentedHow did you create the view relationship to the current content type in the first place? Im having problems with that:(