I am a novice to the OG I hope someone can help me out. I plan on creating a genealogy website. I would like to know if I am able to create this structure using OG and SubOG where I will have each individual person a group and their children a sub group within a subgroup.

If I have for example Mr. Jones family as Group A and he has 3 children (Mike, Jack and Sara) I will place the children in subgroups A B and C and add then add the grandchildren (Tim, Jen and Alex) under each subgroup.

Group A (Mr. Jones)
...Subgroup A (Mike)
......Subgroup A (Tim)
......Subgroup B (Jen)
...Subgroup B (Jack)
...Subgroup C (Sara)
......Subgroup A (Alex)

My question is if I add (Jen) group she will have access to her parent group (Mike) as well as her grandparent group (Mr. Jones) Will she also have access to all of the subgroups underneath Mr. Jones group?

Is it possible to set it up that she only has access to her parent group (Mike) and grandparent group (Mr. Jones) and if she wants to add to her sibling group (Tim) she will have to request it? Also if she request to add to her first cousin group (Alex) will she also have access to Alex's parent (Sarah) group or can we limit it and have her request access to the group of (sarah)?

Thank You

Henry

Comments

bschilt’s picture

My question is if I add (Jen) group she will have access to her parent group (Mike) as well as her grandparent group (Mr. Jones) Will she also have access to all of the subgroups underneath Mr. Jones group?

If the Subgroup "Membership Propagation" settings have "Parent" checked then Jen will gain membership to Mike and Mr. Jones. She will not have a membership to the rest of the groups under Mr. Jones.

Is it possible to set it up that she only has access to her parent group (Mike) and grandparent group (Mr. Jones) and if she wants to add to her sibling group (Tim) she will have to request it?

Yes, by setting "Membership Propagation" to "Parent"

Also if she request to add to her first cousin group (Alex) will she also have access to Alex's parent (Sarah) group or can we limit it and have her request access to the group of (sarah)?

If Jen is added to the Alex group, her membership will propagate to Sarah if the "Membership Propagation" is set to "Parent".

The way OG Subgroups works is that any time a user becomes a member of a group that user's membership will be propagated automatically depending on the membership propagation settings. There is no way to only subscribe a user to a group and not have the propagation happen using the OG UI.

If you create a custom module you can easily create a function that subscribes a user to a group without OG Subgroups propagating that membership. You could do something like this:

function MY_MODULE_subscribe($gid, $uid) {
  // Setting the og_subgroups flag prevents propagation
  og_save_subscription($gid, $uid, array('og_subgroups' => TRUE));
}
henrys212’s picture

Thanks for the responds, I had some difficulty with the Organic Group but I was able to fix the problem. I am ready to try the subgroup. I had another question if its possible.

Suppose in my example (Jen's mother) group is (Cindy) group, now (Jen) group is able to have access to the parent group (Mike) as well as her grandfather (Mr. Jones group) is it possible that she can also have access to view the hierarchy on her mothers side as well? Is it possioble to have 1 subgroup belonging to 2 parent group?

bschilt’s picture

Status: Active » Closed (won't fix)

groups can only have one parent. There would be too many issues surrounding user and content propagation for groups that had multiple parents. So this module will not be supporting multiple parents.