Posted by mbertin on April 11, 2014 at 1:11pm
I'm new with Organic Groups. I'm using Drupal 7 and organic group 7.1.
I would like to allow the owner/administrator of a group to add contents created by authenticated users to his own group.
For example if I have a group called "Black and white movies" and i see an article that is part of a group called "Movies of 1930", I would like to be able to add this article to my group.
Is it possible?
Thanks for the help!
Comments
Organic Group Permissions
The question is a bit tricky, in OG Permissions there is an Edit Any and Delete Any permission for all the content types. that should allow you to change or add to the Group Audience of a content thereby adding the item to another group. I am just not sure if you need the original author to be a member of all the groups his her content is getting added to - I don't think it matters but items like media photo and video usually gets stored in subfolders under a folder named after the user example - as admin my files gets stored in 1/ .... Best thing is to test it out,
OG Permissions
Thank you for the fast answer!
With OG Permissions do you mean the module (https://drupal.org/project/og_perm) ?
Because I think that module is available only for D6.
If the price to pay is, for the author, to be added to all the groups his content gets connected to I guess I would consider it.
I;m using D7 its
I;m using D7 its admin/config/group/permissions- this is a separate set of permissions from admin/people/permissions. I'm not sure if adding the author to a group is required, just test it out first
I;m using D7 its
I;m using D7 its admin/config/group/permissions- this is a separate set of permissions from admin/people/permissions. I'm not sure if adding the author to a group is required, just test it out first
Almost there
I found a way to do what I had in mind using VBO and Rule Components.
With VBO I can see all nodes and with Component I can create a rule that add the node to the group that the user prefers.
The only thing that I cannot achieve is to show to the User only the OG groups he is a member of. By now the user can select all existing OG Groups and I'm not able to filter them by group audience.
Any idea on how I could make it work?
Thank you.
Are you saying when you use
Are you saying when you use the select list widget on the OG Audience all the groups appear whether or not he or she is authorised to create content on that group? I have not tested your scenario out -but if it really just dumps a list of the groups whether or not you are authorised to create contents in it or not, you should create an issue with the OG group. I would typically look into the module and figure out how the code goes so I can tell them their select requires a where statement (if that is the case)
View in Organic Groups
Have you checked out the OG Extras project. It doesn't seem to do exactly what you need but it gives you a number of examples of views using organic group fields as contextual filters so it may give you some ideas.
It also mentions that it needs OG 7.2, so you may want to upgrade if that's possible at this stage.