I see that in Commons 2, there was support for subgroups and the content would flow up/down the hierarchy, as configured. I see in Commons 7.x how to setup subgroups and I'm testing the way access will flow and how the groups are displayed.

  1. Will security/access to content flow up/down the hierarchy? If so, how is this configured?
  2. With subgroups, the Groups page does not display them in their hierarchy, but in groupings. I am using Views Tree, which mostly works. However, it would be great to be able to have them collapsed and then expand them as needed. Can this be added?
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Any updated re: this issue?

blacklabel_tom’s picture

I think the functionality for this came from the OG subgroups module:

http://drupal.org/project/og_subgroups

There is a D7 dev release, but it hasn't been updated in over a year so I don't think that will be appearing any time soon.

I would like to see subgroups in commons 3. Maybe there is a case for porting the subgroups module for commons if enough people want it.

Cheers

Tom

geigerg’s picture

There is no porting needed.
http://drupal.org/node/1536178

blacklabel_tom’s picture

Ah brilliant, I'll give those patches a go and see if there are any problems with commons.

Cheers

Tom

ezra-g’s picture

Priority: Major » Normal

Marking as "normal" to help us indicate which issues are release blockers.

pdeclarens’s picture

Assigned: Unassigned » pdeclarens

I installed and enabled the og_subgroup module

When i create a new group, I find nowhere to stipulate that thius new group is a subgoup...
In administration/configure I find this
Organic groups

OG field settings
Configure Organic groups fields in bundles.
OG permissions overview
Overview of Organic groups permissions.
OG roles overview
Overview of organic groups roles.
OG settings
Administer OG settings.

nothing regarding subgroups....

thanks for your help

ntag’s picture

Is there going to be subgroup functionality packaged with future commons 3 releases?

I don't know if I should use og_subgroups because the module looks like it is not being actively maintained. There are a few patches here and there in 1 issue topic on their open issue lists but nothing has been committed since 2011.

I heard of a taxonomy approach discussed here: http://groups.drupal.org/node/10070
I don't really know how to use taxonomy to create the main group and its sub groups. Does anyone happen to have a tutorial that may be useful in explaining how to create subgroups with taxonomy?

Hopefully subgroups will be a feature to consider adding to future releases in commons.

blacklabel_tom’s picture

There is subgroups integration going on at: http://drupal.org/node/1536178

Looks like its needing some review, I haven't had a change to look it over properly but it looks promising.

Cheers

Tom

pdeclarens’s picture

Assigned: pdeclarens » Unassigned
Status: Active » Closed (fixed)
ntag’s picture

since pdeclarens says this issue is fixed, is it safe to assume that og_subgroups was a smooth installation for creating subgroups in drupal commons?

the604’s picture

Status: Closed (fixed) » Active
pdeclarens’s picture

I confirm OG_subgroup odeos work after hte patch is installed.

the604’s picture

Hey pdeclarens, how did you get your subgroups to work? I'm having the same problem that you posted in #6 of this thread.

pdeclarens’s picture

yes I got it running

You have first to create a new content type, let's call it "subgroup"
in the OGrganic groups tab, make shure that it is treated as a group

The goto add content, choose subgroup, and you will choose in the Your group box the group you want this subgrou^p to belong
It's all done!

ntag’s picture

Thanks pdeclarens!

ntag’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

geigerg’s picture

Status: Closed (fixed) » Needs work

Maybe it's to to adress a commons subgroup feature based on OG Subgroups.

Content-Type, Integration in Group-Homepage, ...

Dustin@PI’s picture

Anonymous’s picture

I did try to use the subgroups modules, but I think it would be much better if the functionality was more tightly integrated in the Commons groups management. For instance, would use the parent-child relationship that is already inherent to OG in Commons.

aitala’s picture

I agree - I've played around with the D7 dev branch of OG subgroups and it seems to work, but don't understand how to set it up so that a normal user can access the 'create subgroup' functionality via the UI (i.e. w/o going directly to the node/add page). It would be nice to have it in the "Create a Post' popup from the parent group.

I would think that having a groups hierarchy would be a necessity...

Thanks,
Eric

Anonymous’s picture

Category: support » feature

Changing to a feature request to have this added to Commons.

juan_g’s picture

Version: » 7.x-3.x-dev

Setting version.

juan_g’s picture

Issue summary: View changes

removed extraneous list item

pinkonomy’s picture

+1 for adding subgroups to Commons

juan_g’s picture

Title: Subgroups » D7 Commons Subgroups feature
Issue summary: View changes

Making the issue title more specific, given that what people is proposing here is a Commons 3.x (D7) optional feature similar to the Subgroups one that was part of Commons 2.x (D6).

Since Organic Groups, used by Commons for the group functionality, has a new subgroup functionality built-in in the OG version for D7, now it would be much easier than for D6 to add it to Commons as a feature:

Any type of entity can belong to a group. In fact, the group entities themselves can also be designated as potential content for other groups. If set up this way we could have groups that contain other groups, creating subgroups.
Organic Groups for Drupal 7 | Lullabot

Naturally the OG subgroups functionality works already in Commons 3.x as well (at this moment with workarounds for some temporary glitch), but it must be configured by hand in different possible ways. It would be good that a new feature for better subgroup integration in Commons standardized it for future compatibility.

I think it would be enough that the 3.x feature included just the basics in its first version, because that is probably all what many users need.

That is to say, enabling the optional Commons Subgroups feature could initially do just the following:

1. Set the Group content type to be a "group content", in addition to the current default "group". This automatically adds a "Groups audience" field to choose a parent group. It should't be a required field, since top level groups with no parent need to leave it empty.

2. Improve the group hierarchy navigation: group menu, full breadcrumb...

Those are the essentials, really quick to implement.

The rest, bells and whistles that were included since Commons 2.0 (optional propagation of content and user memberships among groups, merging of groups, etc.) could be gradually added in next versions of the 3.x feature. About this, OG maintainer Amitaibu mentioned:

Subgroups are possible in OG7, but in order to propagate content/ users OG_subgroups7 should be used
#824016: Subgroup visibility and access inheritance

Disabling the optional feature would be like in the D6 Commons Subgroups feature:

If you previously configured a group hierarchy, the hierarchy is maintained, but not used or displayed. If you re-enable Subgroups, Drupal Commons displays the previously defined group hierarchy.
Understanding the Drupal Commons features (2.x)

See also in Acquia's Drupal Commons documentation (free registration): Subgroups (2.0+)

juan_g’s picture

2. Improve the group hierarchy navigation: group menu, full breadcrumb...

About the full breadcrumb to help navigate the subgroup hierarchy, apart from a possible patch to the current Commons breadcrumb, another quick solution is to just install the excellent Crumbs module, which works with Organic Groups, including its built-in subgroup functionality.

A detail from a screenshot of a Drupal Commons 3.x site with subgroups and Crumbs breadcrumb:

Crumbs breadcrumb in Drupal Commons

juan_g’s picture

An additional detail. In:

Administration > Structure > Crumbs > Display

one of the breadcrumb optional settings is:

Home link settings

[X] Show the home page link (recommended).

Home link title

User Community

Title of the link that points to the front page.

In order to this to work, we also check:

[X] Override adaptivetheme_breadcrumb(): AT Admin, Commons Origins

The result is:

Full Crumbs breadcrumb in Drupal Commons 7.x-3.x

huma2000’s picture

any update on this?? I'm really interested on this funcionality

dbt102’s picture

Did some research on this over the last month or so. At this point ( ref: http://drupal.stackexchange.com/questions/40835/need-groups-within-a-gro...) it looks to me like subgroups is part of the og module, so by default its built into Commons.

The og_subgroups module adds content and membership propagation

charginghawk’s picture

charginghawk’s picture