Matt Beckett's plugins:
This plugin allows groups to be created as sub-groups of groups.
Features
Properties of Subgroups
------------------------
- only members of the parent group can join a sub-group
- sub-groups are fully qualified groups in their own right, may have sub-groups of their own
- infinite depth of sub-groups
- breadcrumb navigation on group pages shows path from parent to current group
- groups owner block contains link to parent group- groups owner block contains link to subgroups
- when users leave a parent group, they are removed from all subgroups
Events
-------
Creating a subgroup
- subgroup automatically inherits colors/backgrounds from parent if group custom layout is used
Deletion of a group
- if the group has subgroups, all subgroups will be deleted
- content within subgroups can be reassigned to the original owner, to the parent group, or deleted
Updating a group
- if the group has subgroups, and the visibility of the group becomes more restrictive, the visibility of subgroups is updated to be at least that restrictive
Produced for and with the support of Athabasca University, Canada.
Initial Release
Comments
a quick test.. i see that this is not functioning with the pagehandler hijack plugin, which i have used to change groups to an other label.
Yes, unfortunately parts of it rely on the 'route' hook utilized in pagehandler hijack, so they are incompatible currently. The problem is actually with pagehandler hijack, not this.
If you want to try to make them compatible it's a case of needing to trigger the route plugin hook with the original parameter while pagehandler hijack has control. For example if you renamed groups to clubs, then in the hook for 'route', 'clubs' you need to translate clubs => groups and re-trigger the hook with 'groups' instead of 'clubs'.
When I transfer the group ownership to a non-admin user, he or she can't create subgroups.
@Jose - I just re-tested that scenario, and the non-admin user could create subgroups. Tested both with the transfer of the top level group, as well as the transfer of a subgroup. You'll have to provide me with more information. Are you using group_tools to perform the group ownership transfer?
Sounds great plugin, gonna test, please experts try to make a Poke plugin I am sure that would be a very small plugin with just couple of files. Grateful if you can make a Poke plugin for elgg as well :)
Matt, yes, I'm using Group Tools 2.3 with the Allow group owner transfer option in Site Admin Only; also I'm using the Limit the creation of groups to Site administrators option.
So problem solved right?
Well, Matt, is a bug. But now I understand that is from Group Tools and not yours.
Awesome plugin!
@Matt
This is a totally awesome plugin! It will help many people and some crazy ideas I have in my mind.
Thanks! Recommended!
@Jose - I wouldn't consider that a bug. You've told the system not to allow non-admins to create groups. Subgroups are groups themselves, so it is correct in not letting your non-admin user create a subgroup.
@RJ - thanks, there's been a couple of attempts at a good subgroups plugin but nothing that I've seen that worked correctly. Hopefully I've upped the ante for subgroups integration in Elgg :)
@matt: i'll leave any changes here to you, since you know the code of both and i do not.. 3 hours for me or 10 minutes for you.. maybe. :)
Can you provide some images of how this plugin is supposed to behave on group pages? It doesn't seem to work correctly for me but I'm not sure exactly how without seeing it in action.