Using views to display posts in all groups that any user belongs to

Events happening in the community are now at Drupal community events on www.drupal.org.
benjaminlhaas's picture

Hi all, I'm having a bit of a quandry because I think I'm trying to do something that might not possible using the Views module: I'm trying to display recent posts from all the Organic Groups that a user belongs to. For example, say I have a user whose has a drupal username of "ben" and belongs to three groups. There is a page for each user on the site, in the format "users/[username]", so in this case we have the page "users/ben". On this page I'd like to list recent posts made in all three groups that ben belongs to. Note, these posts could potentially be written by any user who belongs to these groups, not necessarily just by ben.

There is a built-in view in the Organic Groups module, "og_mytracker", that displays all of the logged-in user's groups activity. This is close to what I'd like, but slightly different. I'm looking for a the groups activity for any given user.

I believe that I'd have to pass the username as an argument to the view. But as far as I can tell, I can only tell the view to limit the output to posts by this username. I'm unable to discover if I can tell the view to get posts from all users in this persons groups. Does anyone know if this is possible?

Thanks very much in advance for any assistance or advice.

Comments

I thought og_mytracker

caschbre's picture

I thought og_mytracker displayed all activity to the groups the logged in user belongs to. At least that is what it is doing by default when I installed it.

Is that correct?

drupal92037's picture

Does og_mytracker display all activities of the group(s) that a user belongs to, or only his/her activity within the group?

Maybe this helps, not

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: