Problem

I have a content type that is a "Group content type". The content type should not be added to the menu and so no menus have been set available in the content type.
og_menu adds the menu array to the content type form regardless of the settings in the content type.

Right now the menu settings ends up a bit messy on top of the form instead of in a nice vertical tab when the content type isn't set to be available in any menu.

I dont know the best solution for how to solve this. I guess a group content type could be set to not be available in any non-og-menu but in og-menus?

Solution

We could add a check if the content type is set to be available in any of the normal menus and then add the menu array.

CommentFileSizeAuthor
#1 menuparentcheck-1425950-1.patch777 bytespontus_nilsson

Comments

pontus_nilsson’s picture

Status: Active » Needs review
StatusFileSize
new777 bytes

Attached is a patch on how menu module determines if the node can be in a menu or not. Any other ideas on how to solve this?

rv0’s picture

I should check it out first, but it might work with a simple isset() too...

rv0’s picture

Status: Needs review » Fixed

Right now the menu settings ends up a bit messy on top of the form instead of in a nice vertical tab when the content type isn't set to be available in any menu.

Could not reproduce this, so maybe this is already fixed.
Please re-open and provide details if not.

I noticed the menu.module adds a menu array even if no menu is enabled, so isset() won't work.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.