I'd like to have a select box exposed filter for all organic groups. How do I do this in Views? I only see the data entry option -- no end-user is going to understand that or know the group id.

View is User based.

Comments

trying to figure this out right now as well..

The only issue I see with this is the potential to have private groups - since the drop-down would have to restrict showing private groups that the current user cannot see.

I was looking for the same thing -- I have a list of users and would like to filter it so it only shows members of a certain group, and I need the filter to be a dropdown select list, not a field where you have to type in the group ID.

Here is what worked for me:

Admin > Configuration > Account Settings > Manage Fields > Edit the OG Reference (og_group_ref in my case). Under Additional Behaviors, I had to check the "Render Views filters as select list" box.

Then in Views -
1.) Add a relationship for OG membership: OG membership from Node
2.) Add a relationship for OG membership: Group Node from OG membership that uses the relationship OG membership from Node.
3.) Add the filter criteria Field: Groups audience (og_group_ref) and expose it to visitors
4.) Configure the filter to your preference.

(Additionally, I use Better Exposed Filters to make my drop down filters in Views a little more aesthetically pleasing.)

I'm still trying to get my mind around how OG 2.x and Views interact. I wish that I could provide a more elaborate response, but hope this is somewhat helpful.

Status:Active» Fixed

@jessico -- thank you! Totally forgot about the "Render Views filters as select list" checkbox in the field settings... that's what I was looking for!

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Issue summary:View changes

@jessico -- Thank you!