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
Comment #1
izmeez CreditAttribution: izmeez commentedJust 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.
Comment #2
nancygill CreditAttribution: nancygill commentedHow 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.
Comment #3
hanksterr7 CreditAttribution: hanksterr7 commentedI'm not aware of a way to declare a content type to be private. Are you?
Comment #4
juan_g CreditAttribution: juan_g commented@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...).
@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.
Comment #5
juan_g CreditAttribution: juan_g commented@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).
Comment #6
juan_g CreditAttribution: juan_g commentedBy 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.
Comment #7
hanksterr7 CreditAttribution: hanksterr7 as a volunteer commentedThanks 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
Comment #8
jaesperanza CreditAttribution: jaesperanza commentedI'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