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

This entry was posted in Drupal, Drupal 7, Web Development, Web Resources. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

You must be logged in to post a comment.