Read-only on a group-type basis
| Project: | OG Read Only |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
Hi, first off, THANK YOU THANK YOU THANK YOU! Using your module I'm able to restrict who-can-post-what to my groups. The simple approach is a breath of fresh air. I was becoming extremely discouraged by the quality & complexity of other modules that aim to accomplish this.
I'm using OG Read Only to make a type of group that only the group admins can post to. For each group that gets created of this type, the creator needs to check all of the available content types as being "read only".
I'd like to be able to set the read only types on a group-type basis (ie: from admin/content/types). If the default settings could be made there, then the "Read only content types: " section on the group creation/edit pages could be optionally removed.
Furthermore, it would be nice to say for a group that "all content types are read-only", and have this setting apply even to new content types that are added to the system in the future.
Thanks again!

#1
Hi,
Please find attached a patch that allows a site administrator to set the "master" read-only content-types for group-types.
While editing a node-type ('admin/content/node-type'), the Organic Groups section will list the available group_post content types (see attached screenshot). Types checked here will be treated as read-only for that group type, and the group edit form will inform the group owner about this. Types that are left unchecked will behave normally. If *all* content types are marked as read-only for a group-type, OG Read Only will not display any options on the group-node form.
I also added uninstall to the schema. It's not in the patch, so this needs to be added to the .install file:
<?phpfunction og_read_only_uninstall() {
drupal_uninstall_schema('og_read_only');
variable_del('og_read_only_master_types');
}
?>
I hope you will find this useful!
#2
#3
Commited in DRUPAL-6--2 . Thanks !
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5
Installed -dev just now, and I cannot find this setting at all on the node type page. It works fine at the group level, but this patch would be extremely good for me, I'm trying to create an info page per group, that only the group admin can edit.
It seems that the code in the patch is not included in the -dev module?
#6
In the node/add form for a Group Node, you should see a "Read only content types:" fieldset, which lists all of your node types that you've told OG are "Standard group posts".
The only exception is if you check your "Standard group post" content type under the "Read-only content types (for Group nodes)" fieldset in /admin/content/node-type/myognodetype. If you do that, the content type will not display on in the node/add form for an OG.
Make sure you also apply this patch: http://drupal.org/node/378700
FYI - The patch in this ticket has already been committed. It's better to open new tickets for new issues.
#7
After checking, I see that this patch isn't in the -dev package. It's only in the DRUPAL-6-2 branch:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/og_read_onl...
Make sure you also apply this patch: http://drupal.org/node/378700
#8
Could someone help to port this to 6.x-1.x-dev? This is a very useful feature.