Organic Groups "create post" content link needed with posting content type specific to group

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
enter image description here

Clicking on group audience for Amigo Post takes us to that group audiences configuration page. Here I am choosing to prepopulate the entity reference.
enter image description here

Here is my panel for the Organic Groups group. Lets go to the Content Create Links setting page.
enter image description here

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.
enter image description here

Looking at the Amigo group page we can see that the create post section is not even showing up.
enter image description here

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.
enter image description here

Does anyone have any idea how to have the panel choose the content creation link type based on the current group?

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Organic Groups "create post" content link needed with posting content type specific to group

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.