Creating Subgroup for the Organic Groups
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.
- First, download and install Subgroups for Organic Group module. You can find it here. https://drupal.org/project/og_subgroups
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 (not verified)
Sat, 07/27/2013 - 11:01
Permalink
Why am I getting different result??
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
Mon, 07/29/2013 - 11:48
Permalink
Which version of og_subgroups you are using ?
Can you please tell me which version of og you are using ?
jlukeadan jlukeadan (not verified)
Sat, 04/26/2014 - 03:32
Permalink
Well explained logic, that's
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 (not verified)
Wed, 07/09/2014 - 07:59
Permalink
BlackMen
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 (not verified)
Tue, 08/26/2014 - 21:36
Permalink
Much appreciated a whole lot
Much appreciated a whole lot for this extraordinary article;this is the stuff that keeps me experiencing out these day. Injustice Hack
jackman30 (not verified)
Thu, 07/03/2014 - 09:50
Permalink
Well explained logic, that's
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 (not verified)
Tue, 08/06/2013 - 19:30
Permalink
Add new comment | Mohit Aghera
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 (not verified)
Wed, 07/23/2014 - 00:07
Permalink
Disgrace on the search
Disgrace on the search engines for now not positioning this publish upper! Come on over and discuss with my web site .
life coaching
Landlord Gas Ce... (not verified)
Tue, 09/24/2013 - 15:21
Permalink
Add new comment | Mohit Aghera
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 (not verified)
Fri, 07/11/2014 - 06:36
Permalink
Any clues on how to create a
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 (not verified)
Sun, 07/13/2014 - 06:04
Permalink
Gas
hanks in support of sharing such a fastidious opinion, post is nice, thats why i have read it fully Gas
Patrick (not verified)
Sun, 10/06/2013 - 17:39
Permalink
View of sub-groups?
Any clues on how to create a view in Drupal 7 for the list of sub-groups of a group?
mohit.aghera
Wed, 10/09/2013 - 16:02
Permalink
Views: Displaying the subgroup of current group
You can find the article here: http://mohitaghera.drupalgardens.com/content/views-displaying-subgroup-current-group
alpes de Haute ... (not verified)
Tue, 10/29/2013 - 10:43
Permalink
Add new comment | Mohit Aghera
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 (not verified)
Wed, 08/06/2014 - 08:30
Permalink
BlackMen
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 (not verified)
Wed, 11/27/2013 - 05:52
Permalink
This is a smart blog. I mean
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 (not verified)
Wed, 11/27/2013 - 05:53
Permalink
I was very pleased to find
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>
Wikipedia Info ... (not verified)
Sun, 08/03/2014 - 14:36
Permalink
Add new comment | Mohit Aghera
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 (not verified)
Wed, 12/11/2013 - 11:05
Permalink
I hope you have a nice day!
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 i... (not verified)
Sat, 12/14/2013 - 05:23
Permalink
Pretty good post. I just
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 (not verified)
Wed, 12/18/2013 - 16:04
Permalink
I've also been thinking the
I've also been thinking the identical matter personally recently. Delighted to see an individual on the same wavelength! Nice article.
sanjay kesari (not verified)
Wed, 12/18/2013 - 20:14
Permalink
og sub group
i want to give a button(make subgroup) on group pages to make a sub group for this current group ,,plz help me .
youtube converter (not verified)
Sun, 08/31/2014 - 01:18
Permalink
Add new comment | Mohit Aghera
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
Sun, 08/31/2014 - 04:35
Permalink
I use Mollom
Hi, thanks for your interest..
I use mollom https://mollom.com/ for spam preventation. It is higly effective.
https://www.reb... (not verified)
Sun, 12/29/2013 - 19:57
Permalink
Awesome blog. I enjoyed
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/
healthy vegetab... (not verified)
Sun, 12/29/2013 - 21:30
Permalink
I high appreciate this post.
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 (not verified)
Wed, 07/09/2014 - 19:23
Permalink
BlackMen
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 (not verified)
Tue, 02/18/2014 - 12:48
Permalink
automatically become a "Group Content"
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
Sun, 03/30/2014 - 06:56
Permalink
I will check it out for the compatibility..
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.afterbusine... (not verified)
Mon, 08/04/2014 - 07:30
Permalink
Accumulating cans is
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 (not verified)
Wed, 02/26/2014 - 10:51
Permalink
Now create a subgroup and
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 (not verified)
Wed, 07/23/2014 - 08:42
Permalink
Now create a subgroup and
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 (not verified)
Sun, 05/11/2014 - 08:38
Permalink
Good
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 p... (not verified)
Mon, 05/26/2014 - 10:44
Permalink
check out the post right here
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 (not verified)
Thu, 05/29/2014 - 14:04
Permalink
After I Read this, I cam to
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 (not verified)
Sat, 05/31/2014 - 07:22
Permalink
This is a very good article.
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 (not verified)
Sun, 08/24/2014 - 13:15
Permalink
Add new comment | Mohit Aghera
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 (not verified)
Wed, 06/11/2014 - 12:00
Permalink
I like and enjoyed reading it
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 (not verified)
Mon, 08/25/2014 - 03:31
Permalink
I read few posts on this web
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 (not verified)
Sat, 06/14/2014 - 07:58
Permalink
Good blog. The font used is
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 (not verified)
Thu, 06/26/2014 - 08:59
Permalink
A very awesome blog post. We
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 (not verified)
Sat, 06/28/2014 - 07:31
Permalink
Awesome blog. I enjoyed
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 (not verified)
Tue, 07/15/2014 - 20:23
Permalink
Very nicely written article.
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 (not verified)
Sat, 07/19/2014 - 17:13
Permalink
I truly appreciate this post.
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 (not verified)
Sun, 07/20/2014 - 00:47
Permalink
I like your post. It is good
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 (not verified)
Wed, 07/23/2014 - 00:18
Permalink
Really great post, Thank you
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 (not verified)
Wed, 07/23/2014 - 00:20
Permalink
You are allowed to post names
You are allowed to post names, but not links, unless they are approved and on topic. how to become a dj
Dina Defaria (not verified)
Sat, 08/09/2014 - 05:21
Permalink
Hello...
Thank you very much for this information. Lowongan kerja
zeeshan1 (not verified)
Mon, 08/11/2014 - 18:58
Permalink
I am continually scanning
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 (not verified)
Sun, 08/17/2014 - 11:49
Permalink
Good blog. The font used is
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