How to create new "Group" content type with Commons 2.0

Hello,

I'm working on setting up a website with Drupal Commons 2.0 RC-1 and I created a content type "Company", and declear it as "Group node".
But I have trouble when I add content in this new “Company” content type. In the “Audience” menu that you have to specify when you creat a new “Group” content, I cannot see the names of groups based on the new “Company” content-type.
Because of this problem I can not add content in this new “Company” content-type.

Thank you in advance for those who can help me, I will be much appreciated.

Comments

bpotter

You can display a "create content" block in the sidebar

You can display a "create content" block in the sidebar of your group home page.

To enable the commons group blocks via context interface .

Go to the context list page at   admin/build/context/list/

and find the contexts tagged under Group . And click the edit link to modify .

the "group-context" context will add this "add content" block.

In the editing interface under Conditions > OG - group type context  you can check your new group content type.

 

(see screenshot at:  https://docs.google.com/leaf?id=0B6pooaEIACfQNDM1MTY4MjEtNjcxZS00Njc1LWEzMmEtYjQyMDNkYTA0YWM0&hl=en_US

Edison Chen

Thanks! But my problem is

Thanks!

But my problem is that  I cannot see the Company type group in the “Audience” menu. I cannot add any  conents in it. The audience menu only display the group type contents.

bpotter

Try to  add your new group

Try to  add your new group type via "Enable subgroups for group types" at "  admin/og/subgroups/settings  .

I

I can't say I understand why, but it worked for me in my a commons 2.0 sandbox site ( apeared  among the other options in the audience select box )

Edison Chen

Yes, it works now! The

Yes, it works now!

The "og_subgroups_form_alter" method in og_subgroups.module overrides the default group audience select list to show hierarchy.

Thanks a lot!