I'd like to see a module like this add in the membership count functionality for OG. I can understand how this hasn't really been flushed out in OG 7 because it becomes entirely more complicated when applying to any entity.

In d6 this was the functionality that gave you a membership count, and a content count. I'd like to also have a list of members and content in a field.

I propose making the view field configurable to select a target entity, so for example if you are creating a content view of type "group", then your target entity might be 'node' or 'user' depending on what type of membership you're looking for.

You can similarly create a taxonomy view and set the target entity to be 'taxonomy_term'.

CommentFileSizeAuthor
#1 membership-counts-lists-1968372-1.patch13.27 KBasherry
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

asherry’s picture

I've come up with this patch to get the basic functionality flowing. You can see in each entity view there is a new field called "Group: Membership count", and "Group: Memberships". In the options you can choose which entity type you need to use as the membership. Seems to me like the term 'membership' can be used as an abstract term, applying to any entity being a member of any other group entity.

asherry’s picture

Status: Active » Needs review
asherry’s picture

Assigned: asherry » Unassigned
Issue summary: View changes
izmeez’s picture

Is this patch needed any more?
Using og-extras-1.x-dev from 2013-Oct the http://example.com/group/.../n/admin/people view includes the total members and total content.