Active
Project:
Subgroups for Organic groups
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2011 at 19:29 UTC
Updated:
19 Oct 2016 at 11:47 UTC
Jump to comment: Most recent
Comments
Comment #1
zzadik commentedsubscribe
Comment #2
amitaibuCorrect project
Comment #3
brightboldThanks - it's helpful to know that OG Subgroups would be required to make this happen. If anyone knows whether this is possible and if so, how to achieve it, I'd love to know!
Comment #4
paul2 commentedHi @BrightBold. I too have been looking for this feature in OG7, coincidentally for a similar application (my client is also a learning institution, and they have a course->class relationship with similar requirements as your school->grade relationship; members of any of the "class" nodes should automatically become members of the parent "course" node). I've actually spent today and yesterday implementing this functionality in og_subgroups, and have at least got as far as membership subscription working, in either the parent or child directions (as you can specify).
Things that I haven't got working yet are:
I'm going to post my patch even in its incomplete state, since it still could be useful to you. However, it is based on patch #25 in #1226002: D7 subgroups: Control direction of content/membership inheritance, and it is really part of that same feature (inheritance), so I'm going to post it there.
Comment #5
brightboldThanks @Paul2 — I'm following the other thread as well so I saw your patch. This looks like it will be very useful! I'm hoping to spend some more time this month working on the site where I wanted this functionality, so I will post back in the other thread when I get a chance to test your work. Thanks for working on this!
Comment #6
paul2 commentedJust thought I'd post an update:
I discovered that some shortcomings in OG7 stable's current incarnation make it difficult for subgroups to work. In patching og_subgroups I discovered that there were major conflicts happening between user membership and group hierarchy (they both shared the same field instance). It means you can't really use og_subgroups with OG7 stable yet, so I would avoid bothering with the patch I posted for now.
Amitaibu has been working on a fix for this but it requires #1342632: Deprecate OG group entity to be done first, which changes the OG API significantly. I adapted my version of og_subgroups to Amitaibu's branch, but I just focused on the feature that I need right now and left the rest of og_subgroups commented out, so I'm wary of posting a half-assed patch. Let me know if you really want to try it out and I can send you the new patch.
Comment #7
brightboldThanks @paul2 — I've been waiting for #1342632: Deprecate OG group entity to shake out as well, so I will wait until you can post a complete patch and test it then. I agree it makes sense to have the full OG Subgroups functionality if possible.
Comment #8
memoo commentedsub
Comment #9
brightboldIn #1536178-80: Integrate with og-7.x-2.x, @kenianbei says
So above is a use case for upward inheritance of content. However what I was specifically asking for in the above is whether there could be inheritance without editing rights - so that if I'm in the "School" group and the "3rd Grade" subgroup, I can view items from the 4th Grade subgroup, but I don't have the same permissions that I might have for other items in the "School" group. Is this possible? Or do I need to rethink my site plan?
Edit because I said down when I meant up
Comment #10
markdcHas there ever been any progress on this? This is exactly what I need.