I am looking to create a view which will return any content a user has membership to.
Following steps from another post, I managed to return content which matches users membership. But this doesn't take into account content where membership is inherited. So a node which is linked to another node's audience doesn't appear in the view. Steps taken:
- Add new view.
Show -> OG membership
(important!) Then in some display add a contextual filter:
OG membership: Entity id.
Provide default value:
Type -> User ID
from logged in user- Next to get the actual titles of the groups (as the base table is OG membership, not node),
- Add a relationship ->
Group Node from OG membership
. - Add a field ->
Content: Title. Relationship
-> Group node from OG membership.