In our Drupal 7 site, we are using Organic Groups to create private groups. Users are also able to upload content to a gallery (using custom Content Types "Gallery image" and "Gallery video"). On users' profile pages, we are showing a carousel of their N most-recent uploads, with a View using a Contextual Filter on Author uid.

We would like to add a similar carousel to each OG group page, showing the most-recent N uploads by members of the group. [Edit: This is uploads to the general Gallery, the OG groups do not have their own galleries.] If it makes a difference, almost all users will be members of more than one group (for reasons that are unimportant, there are two kinds of group: geographic groups and interest-based groups).

This seems like it's probably very easy, but I just can't see how to do this, either from the View's Contextual Filters or the View's Relationships.

Am I missing something obvious?

  • For clarification: do you want to show "group content" from member who belong to the current group or do you want to show "any content" from members who belong to the current group? Btw, checkout this awesome OG tutorial: modulesunraveled.com/organic-groups.
    – uwe
    Jan 30, 2012 at 16:45
  • The latter. Galleries are unrelated to the OG groups, but all users will be in at least two groups. User pages have a carousel that shows the most recent N uploads from that user, we would like to add a carousel to the OG group pages that show the most recent N uploads from "users who are members of this group". I've edited the question to make that [slightly] clearer. Thanks for the tutorial link; I'll go take a look in a moment. Jan 30, 2012 at 16:47
  • this is a view that will show group content uploaded by members of the group: s3.amazonaws.com/awesome_screenshot/…. If you remove the "Group membership: Node group membership" relationship it might show all content by members of the group.
    – uwe
    Jan 30, 2012 at 16:55

1 Answer 1


In Drupal 6 you would add a relationship to the Organic Group: node then filter by Organic Group: user and use the relationship. I believe it should be something very similar by using the contextual filters...

  • Thanks; that gives me somewhere to start looking, at least :o) Jan 30, 2012 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.