Only show content from your organic group memberships

Here’s how to create a view in Drupal 7 that only shows nodes of content that are associated with organic groups of which you are a member.

In your View under Advanced, add a Contextual Filter for Group Membership (og_user_node), and for “When the filter value is NOT in the URL” select “Provide default value” and then set it to be “The OG groups of the logged in user”, Apply.

Source reference:

https://groups.drupal.org/node/181009

Leave a Reply