Creating Subgroup for the Organic Groups

  • 18 July 2013
  • mohit.aghera

I have long history of working with organic group modules. Organic groups and views are the modules which i have worked the most. Nearly half of my projects i have used organic group module either way.

Recently i came across one other requirement to creating the subgroups for the organic group module.

Though the task was pretty simple as i follow the steps from drupal.org. Here is the step by step points which i followed to achieve it.

This module enables a user with the proper permissions to build group hierarchies (or tree) by nesting groups under other groups. Simple or complex group hierarchies can be easily created.

  • Now create a content type called 'subgroup' or you can give any name which you want to keep as content type. You can also add appropriate fields.
  • Goto the following path: administration->configuration->organic groups->OG field settings (admin/config/group/fields)
  • Now select "subgroup" content type on this page, as we are adding group fields for this content type.
  • After selecting the content type from the dropdown of content type, you should see "Groups Audience" as a field.

If you don't, select your node type from the bundles dropdown and in the fields drop down, select "group audience" and save it. If you want to go one further, add "group visibility" and "group content visibility" to it too. This is extra credit.

  • Now come back to Administration->Structure->Content types->Subgroups (i.e. content type you created)

You should find the Group tab in the tab groups or menu settings group. You should select "group type" and "not a group content type" -- this marks thing as a group as opposed to say a group aware article.

 

Now create a subgroup and select the appropriate group as parent group or major group for the subgroup you are creating.

You are done :)

Stay tuned for the view that will display subgroups of current group :)

 

Update : 

I have added an article by displaying the view for the organic group: http://mohitaghera.drupalgardens.com/content/views-displaying-subgroup-current-group

 

 

 

 

 

 

 

 

Comments

Max Chock's picture

Hello,

I''ve install the og_subgroup also but why my behavior is different from yours? I'm using the 7.x-2.x-dev version but whenever I added the Group Audience field, it will automatically made the "Group" to become "Group" and "Group Content" as picture below shown..

https://docs.google.com/file/d/0B227LPAlnp9xVWw5dWJfc29XRzA/edit?usp=sha...

Any idea?

mohit.aghera's picture

Can you please tell me which version of og you are using ?

Well explained logic, that's true and must be followed for best outputs to have a brilliant experience for future assistance

[ whole body garcinia cambogia ][ Research Verified Garcinia Cambogia ]

BlackMen's picture

Well explained logic, that's true and must be followed for best outputs to have a brilliant experience for future assistance

loft conversion costs London

 

zeeshan1's picture

Much appreciated a whole lot for this extraordinary article;this is the stuff that keeps me experiencing out these day. Injustice Hack

 

jackman30's picture

Well explained logic, that's true and must be followed for best outputs to have a brilliant experience for future assistance

vitamin c serum for face

 

owie's picture

Great work! This is the type of info that are supposed
to be shared across the net. Disgrace on the search engines for now not positioning this publish upper!
Come on over and discuss with my web site . Thanks =)

jackman30's picture

Disgrace on the search engines for now not positioning this publish upper! Come on over and discuss with my web site .

life coaching

 

Thanks in support of sharing such a fastidious opinion, post is nice, thats why i have read it fully

Look into my web site ... [url=http://www.gassafetycertificate.me.uk/gas-safety-certificate/]Landlord Gas Certificate[/url]

jackman30's picture

Any clues on how to create a view in Drupal 7 for the list of sub-groups of a group? vitamin c skin care

Gas's picture

hanks in support of sharing such a fastidious opinion, post is nice, thats why i have read it fully     Gas

Patrick's picture

Any clues on how to create a view in Drupal 7 for the list of sub-groups of a group?

I'm extremely impressed with your writing skills as well as with the layout
on your weblog. Is this a paid theme or did you modify it
yourself? Anyway keep up the excellent quality writing,
it's rare to see a great blog like this one today.

BlackMen's picture

This module enables a user with the proper permissions to build group hierarchies (or tree) by nesting groups under other groups. Simple or complex group hierarchies can be easily created.

Kentucky Wildcats

 

Amanda's picture

This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. This is like my third time visiting your Blog. You should write more please, this information will help me and others. Try proof reading a couple of times before publishing. Keep writing though. <a href="http://thelwordseasons1-6dvduk.tumblr.com/" rel=dofollow>The L Word Seasons 1-6 DVD Box Set</a> | <a href="http://housemdseasons1-8uk.tumblr.com/" rel=dofollow>House MD Seasons 1-8 DVD Box Set</a> | <a href="http://battlestargalacticaseasons1-4uk.tumblr.com/" rel=dofollow>Battlestar Galactica Seasons 1-4 DVD Box Set</a> | <a href="http://twoandahalfmenseasons1-10uk.tumblr.com/" rel=dofollow>Two and a Half Men Seasons 1-10 DVD Box Set</a> | <a href="http://downtonabbeyseasons1-3uk.tumblr.com/" rel=dofollow>Downton Abbey Seasons 1-3 DVD Box Set</a> | <a href="monsterbeatsheadphonesnew.tumblr.com/" rel=dofollow>Cheap monster beats headphones</a>

Amanda's picture

I was very pleased to find this site. I wanted to thank you for this great read!! I definitely. Enjoying every little bit of it and I have you bookmarked to check out new stuff you post. A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work.  <a href="http://americanhorrorstoryseasonsuk.tumblr.com/" rel=dofollow>American Horror Story Seasons 1-2 DVD Box Set</a> | <a href="http://touchseasons1-2dvduk.tumblr.com/" rel=dofollow>Touch Seasons 1-2 DVD Box Set</a> | <a href="http://homelandseasons1-2dvduk.tumblr.com/" rel=dofollow>Homeland Seasons 1-2 DVD Box Set</a> | <a href="http://sherlockseasons1-2dvd.tumblr.com/" rel=dofollow>Sherlock Seasons 1-2 DVD Box Set</a> | <a href="http://modernfamilyseasons1-4dvduk.tumblr.com/" rel=dofollow>Modern Family Seasons 1-4 DVD Box Set</a> | <a href="http://monsterbeatswirelessnew.tumblr.com/" rel=dofollow>monster beats wireless headphones</a>

My relatives alwaays say that I am wasting my time here at web, howeve I know I am getting knowledge everyday by reading thes good articles.

wellcome's picture

I hope you have a nice day! Very good article, well written and very thought out. I am looking forward to reading more of your posts in the future http://technologyinformationnew.co.uk/

best business ideas for 2014's picture

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your posts.I recently came across your blog and have been reading along.  http://www.businessideasfor2014.com/

 

 

boob's picture

I've also been thinking the identical matter personally recently. Delighted to see an individual on the same wavelength! Nice article.

sanjay kesari's picture

i want to give a button(make subgroup) on group pages  to make a sub group for this current group ,,plz help me .

Howdy, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam feedback?

If so how do you prevent it, any plugin or anything you
can suggest? I get so much lately it's driving me insane so any support is very
much appreciated.

Also visit my web blog: youtube converter

mohit.aghera's picture

Hi, thanks for your interest..

I use mollom https://mollom.com/ for spam preventation. It is higly effective.

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!

https://www.rebelmouse.com/carbnitesolution/

 

I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information?

healthy vegetable recipes

 

BlackMen's picture

I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information?

cheap flights Grenada

 

Carso's picture

Hi i’m using og-sub 7.x-2.0 and OG 7.x-2.5 I followed the steps  I added the Group Audience field, it will automatically made the "Group" to become "Group Content" and I can’t unchecked.

Then I got this error when creating a subgroup content

EntityMetadataWrapperException: Unknown data property field_og_subscribe_settings. in EntityStructureWrapper->getPropertyInfo() (line335 of E:\commons-7.x-3.9-core\commons-7.x-3.9\profiles\commons\modules\contrib\entity\includes\entity.wrapper.inc).

Any ideas?

mohit.aghera's picture

Hi,

I will check for the compatibity for the two modules, if it doesn't work, i will post the updated solution for this.

www.afterbusinesscommunity.com's picture

Accumulating cans is extremely often a period consuming job if you don't have assist. Fortunately there are numerous aluminum containers recycling company ideas that will help you make the procedure much easier. You ought to make a summary of the various community occasions that might be able to supply a person with bare aluminum containers. www.afterbusinesscommunity.com

Simon Clark's picture

Now create a subgroup and select the appropriate group as parent group or major group for the subgroup you are creating. - works perfectly, thanks a lot!

<a href="http://noutatiseo.wordpress.com/">Simon</a>

micheljhon's picture

Now create a subgroup and select the appropriate group as parent group or major group for the subgroup you are creating. - works perfectly, thanks a lot!

Target Visa Login

 

sq's picture

It is good absorb information, i read three times all off your articles,expressly i like this article because this here content is too meaningful and very interesting,keep more articles like this.Good

forskolin

 

check out the post right here's picture

You are now in the community opinion zone: What follows is not our product; it is produced by other individuals, we do not attest to it. By using this Website you agree to to agree to our Guidelines of Involvement.  http://JonsClothing.com

AndrewDavid's picture

After I Read this, I cam to know that you are a very nice blog writer and that you always give us good and accurate information on topics. If you could give me some More info on this topic, I'll really appreciate it.

AndrewDavid's picture

This is a very good article. I have found the information here quite interesting. I was wondering if you could give me some information on the topic, 'How many types of braces are there?' in your next articles. I would appreciate it a lot!

guitar lessons's picture

Wow that was unusual. I just wrote an really long comment but after
I clicked submit my comment didn't show up. Grrrr...
well I'm not writing all that over again. Anyway, just wanted to say wonderful blog!

Chanessra's picture

I like and enjoyed reading it's really a good and very information for me thanks for me sharing ideas with us through this site. photography article

eavedrop44's picture

I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information.

Android TV

 

Diseaseless Review's picture

Good blog. The font used is really good and the information is ok. The background is ok as well, but the domain name is really good. So, to summarize this is a good blog.  Diseaseless Review

Source's picture

A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. https://www.facebook.com/GoldIraRolloverTips

Vivienne's picture

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! 

Vivienne

Usama's picture

Very nicely written article. Everything looks quite good here. The information is just what was required by us, viewers. Keep this kind of work going on in the future as well. Cheers! Girl Tattoos

Johnd63's picture

I truly appreciate this post. I've been looking everywhere for this! Thank goodness I found it on Bing. You've made my day! Thank you again! bffeadedaeck

zeeshan1's picture

I like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed. hormone replacement

text your ex back review: rebelmouse.com/textyourexbackreview/

zeeshan1's picture

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!

how to become a dj

zeeshan1's picture

You are allowed to post names, but not links, unless they are approved and on topic. how to become a dj

Dina Defaria's picture

Thank you very much for this information. Lowongan kerja

zeeshan1's picture

I am continually scanning online for articles that can help me. There is clearly a ton to think about this. I think you made some great focuses in Features additionally. Continue working, incredible occupation!                        

huffman tx heating service

sigma's picture

Good blog. The font used is really good and the information is ok. The background is ok as well, but the domain name is really good. So, to summarize this is a good blog

 

nyyankeeclipper inbox blueprint review

 

Pages

Add new comment