Restricting Content Type based on group type

I am working with Drupal commons for a project of mine. I have two

group nodes - places and groups 

and content types efforts, objectives

Inside the group node : places - users can create groups.

Inside the group node : groups - users can create efforts and objectives.

I am pretty new to drupal and I would like to know how to create something similar to the "default group content selector block" which allows you to create different content types within group nodes.

Also on the default group page shown under Community, the right sidebar has a create group link, I would also like to create something similar for a place too.

Thanks.

 

Comments

jayaram

Does any one know how to

Does any one know how to implement this using commons ?

alexi721

This is possible by going to...

...content types admin page at: /admin/content/types

Click the 'edit' link of the content type you want to be included in the Groups drop-down.

Select the 'Organic groups' tab

Select the 'Group node' radio button

Click 'Save content type.'

jayaram

I know how to make the places

I know how to make the places and group as group nodes, should i also make efforts and objectives as a group node ? I want them to be a part of a group but not a group node!

alexi721

According to your description

According to your description 'efforts' and 'objectives' are your own custom-made content types.

To make them listed as content type for groups you need to follow the steps I outlined in my previous comment.

jayaram

But the thing is I am not

But the thing is I am not able to restrict the type of content I can have for places and groups in the OG features configuration! As of now efforts and objectives are standard group post and I can see them listed in the group content selector block which shows me all of the content types I can create on both the pages. 

What I want is the group content selector show only list me to create a groups page when I'm on a places page and should only list efforts and objectives when I'm on a groups page.

alexi721

Every group has an 'Features'

Every group has an 'Features' tab where you can uncheck the content types you don't want to see.

jayaram

It just lists the default

It just lists the default content types over there. How do i get my custom content types to be listed over there?

rpf

It will require packaging

It will require packaging your content types as Features, as created by the Features module.

jayaram

I even tried doing that.. so

I even tried doing that.. so after creating the package for the content types, should i delete the default content types and install the package as a module ?