Organic groups 7.x-2.6 Entity reference prepopulate 7.x-1.5
Hello, I am trying to create custom “create posting” link for my organic groups. Each Organic Group has its own content posting content types, so when a user visits the panel page for that group the add posting link should be specific to that group.
I have 2 groups: Amigo group, and Authenticated group I read that target bundles are globally defined for Groups Audience, so I read that you have to add an extra group audience to the Posting content type for your group. You are then supposed to set the target bundle on the 2nd to match the group content type. My problem is that when I try to set the “Content Create Links” section in my panel it wants to only set one group audience field, and I have 2 created, one for each group’s posting content type.
I recorded images of each part of this problem for ease of understanding.
Here is my Amigo group’s posting content type called “Amigo Group Post”. Notice the extra Group’s Audience field added to the bottom of the content type. Clicking edit on this allows us to change the settings on this field
Clicking on group audience for Amigo Post takes us to that group audiences configuration page. Here I am choosing to prepopulate the entity reference.
Here is my panel for the Organic Groups group. Lets go to the Content Create Links setting page.
Here you can set ONE of the 2 posting content types to be the content type used for new group postings, but I need it to just choose the posting content type by the type of Organic Group. I chose one because I could only choose one.
Looking at the Amigo group page we can see that the create post section is not even showing up.
This is the Authenticated group page. When viewing this page we do see the create post section, because we had to set one field name for the “content create links” section in the Panel.
Does anyone have any idea how to have the panel choose the content creation link type based on the current group?