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

izmeez’s picture

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.

nancygill’s picture

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.

hanksterr7’s picture

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

juan_g’s picture

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.

juan_g’s picture

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).

juan_g’s picture

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.

hanksterr7’s picture

Issue summary: View changes

Thanks for all the ideas. I would be concerned, though, about having both Content Access and OG manage node visibility. Do these two modules play well together?

I did find a way to get a list of groups to include private groups. Just use Views and modify the og view for a group list to Disable SQL ReWriting (under Advanced | query settings). You can then modify the view access permissions to determine which drupal roles should be able to see this modified View.

So, you can have private groups with private content (by default, choosing "use group defaults" for the content's Group Content Visibility) and still have the groups be visible to non-members using this modified View. Meets my basic need.

Thanks

jaesperanza’s picture

I've been reading up a similar post, and this seems to work for me. OG setup with Content Access module. Hope this helps - https://www.drupal.org/node/1122388#comment-11186131