Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1056993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:47:53+00:00 2026-05-16T17:47:53+00:00

Wondered if someone can shed some light on OG groups in Drupal. I know

  • 0

Wondered if someone can shed some light on OG groups in Drupal.

I know you can restrict what types of NODES that can be created within groups, but what if yuo have two types of groups. Can you restrict the creation of a certain type of node to only one group ?

Example:
I allow users to create groups called Sports
I allow uses to create groups called Movies

I have two types of nodes: Food & Shoes
Can I set that the Food node, can only be created inside the movie group
And set that the Shoes node can only be created inside the Sports group ?

thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:47:54+00:00Added an answer on May 16, 2026 at 5:47 pm

    Core behavior of OG is that every Content type defines it’s own relationship to OG. They might be barred from a group relationship, a group node, or a group post. There is nothing in that base configuration to specify the relationship between a content type and each group type individually.

    However, there are a few tricks you could put in place to try to facilitate something.

    Cheap Trick

    For example, if you hide the navigation to create a node of a given content type, you’ve cut off the obvious approach.

    OG User Roles

    Probably the most conventional trick I can think of would be to carve up the different content types on a permissions level. I’m not entirely positive this will work, so it will bear some experimentation.

    1. Create a Sports Writer role, limit the ability to create and edit Basketball nodes to it.
    2. Use OG User Role to automatically promote members of the Sports group types into the Sports Writer role.

    Cutting Edge Shenanigans

    You can also use the Spaces module to toggle content type availability by Feature. In fact, the implementation of spaces_menu_alter() might show you how you could programmatically build out the functionality you are looking for. Sounds like it would be useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've always wondered this - why can't you declare variables after a case label
I have often wondered why it is that non-English speaking programmers are forced to
I wondered about the best way to implement a correct, flexible and fast Equals
I have always wondered how people update a previous line in a command line.
I have always wondered WHaT tHE HecK?!? is the difference between JScript and JavaScript.
I've always wondered why the C++ Standard library has instantiated basic_[io]stream and all its
I've wondered for a long time what IComponent, IContainer, and ISite are for. I've
I have always wondered if, in general, declaring a throw-away variable before a loop,
I've always wondered how to write the A ? B : C syntax in
I've always wondered about this ... and thankfully, now have a good environment of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.