I was wondering if I would be able to create skeletons for Organic Groups with this module. I try to create a layout where people would be able to create an OG structure automatically (Main group with sub-groups and different permissions and features for sub-groups).
I created a skeleton with main group and sub-group, but only the main group is created as book, but not as a group. Is there any way I could achieve my goal with your module, or do you have any suggestions on how that could be achieved? I know OG subgroup also utilizes the book module to create sub-groups.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | skeleton_oog.patch | 1.14 KB | martin mayer |
Comments
Comment #1
deviantintegral commentedI unfortunately know very little about the workings of OG. But, if it uses books at all as it's substructure, then it should be quite possible.
My guess is that there is something you need to set in the node object when creating it for the node to be recognized as a group (groups are nodes, right?). If that's the case, it would be very nice to add a checkbox in the Create skeleton instance form to "Create as a group".
Presumably all such functionality should be wrapped in module_exists() calls so we don't depend on OG.
Comment #2
go7 commentedThanks deviantintegral. As far as I understand groups are nodes. I can choose any content type and either make it a "Group node" (which creates the group), "Standard group post" (typically only author may edit), "Wiki group post" (any group member may edit) or the content type "May not be posted into a group".
I have looked through the OG subgroup module and that one uses books for the structure, but it depends on OG. Normal OGs don't rely on the book module, because they don't have a structure. You just create the group and then add everything you want in that given group. By choosing a content type which is one of the above mentioned OG types, they will be added to the group. Because you setup the content within a group, they are automatically saved to the group you are in.
The OG subgroup module is the only module that allows the structuring in group and subgroup. I think it would be great additional feature if it would be possible to setup OGs with your module.
Would you contemplate to add this feature? I'm not a programmer, so I'm not sure where I would have to start.
Comment #3
deviantintegral commented@go7: Thanks for the update.
Have you looked at using the og_actions + trigger + workflow modules? Looking at how OG is set up, I'm not sure if it's a good idea to require the Book module simply to template groups. If subgroups work with actions, then there can be one solution for all types of groups.
I've posted your question over on g.d.o so hopefully we can get feedback from those who have more experience with OG as to the best way to go.
http://groups.drupal.org/node/21442
Comment #4
deviantintegral commentedI'm marking this as closed as this is best handled by working with the OG Blueprints / CTools modules.
Comment #5
martin mayer commentedHere is a patch which enables creating an organic group when creating a skeleton instance. To use it, define book page in the Organic groups configuration as group node. The patch requires the og_book_inheritance module.
Comment #6
deviantintegral commentedThanks for the patch.
Should this check for the og_book_inheritance module?
Comments should follow Drupal standards for comments. What does VK mean?
Should this check for the og_book_inheritance module?
Indentation should be fixed.
As well, we'd want documentation to go along with this once everything is ironed out :)
This review is powered by Dreditor.