Hi

I've seen this is doable on Drupal Commons. (https://drupal.org/node/1948224) How would the rest of us do this?

I would like to have a private group, but I would like the group to be listed on the List of Groups page, with a subscribe link.

If I make a group Public, then it shows on the List of Groups page. But if I want its content private, I have to remember to mark each post to the group as private, something that is not likely to happen reliably.

It would be helpful if the default setting for content privacy were separated from the default setting for group name/features (and the subscribe link) visibility.

Is there a feature/patch that already offers this? Or is some coding required?

Thanks for any info
-- hanksterr7

Comments

Just getting into og 7.x-2.x and saw this issue of showing group name in directory listing of groups even if group is private. Is there a separate field for directory listing? In some use cases you might not want groups to show in a listing such as if they are private and closed groups.

How about making the group public, but making the content types that will contribute to the groups private? By marking the content private on the content type rather than individual nodes, all content of that type would be private.

I'm not aware of a way to declare a content type to be private. Are you?

I'm not aware of a way to declare a content type to be private. Are you?

@hanksterr7: You mean for example a "Private Post" content type? I'm also not aware of a way to do this with just core + default OG. Apparently this is in additional contrib (content_access, or node_view_permissions...).

How about making the group public, but making the content types that will contribute to the groups private? By marking the content private on the content type rather than individual nodes, all content of that type would be private.

@nancygill: For example, in the content_access contrib module, they say: "This module allows you to manage permissions for content types by role and author. It allows you to specifiy custom view, edit and delete permissions for each content type." Not sure about the rest of needed configuration, I've not tried it, but it seems that your idea is possible.

I've seen this is doable on Drupal Commons. How would the rest of us do this?

@hanksterr7: Yes, naturally, nancygill's possible solution for public listing of groups with private content is for plain Organic Groups, adding a contrib module. (Those just interested in an introduction to enable normal private groups, not showing in public lists, can see: organic groups - How to make a OG private? - Drupal Answers).

For Drupal Commons' implementation of OG, this is different since DC 3.3 version: Managing group privacy settings (DC docs, free registration).

By the way, we don't need that functionality right now, a handmade list of private groups can be ok if they are few. But a couple of ideas for those who could wish to experiment with nancygill's interesting suggestion:

To create a "Private Post" content type similar to "Post", the module Bundle Copy 7.x-2.x-dev adds a new "CLONE" tab (and also "EXPORT" and "IMPORT") to:

Administration > Structure > Content types > CLONE

Also, with the content_access module, maybe configuring the Group type as well will be enough. However, not sure if a new role like "Private Member" with special permissions will be also needed or not. As said, we have not tried content_access, an indeed popular module.