Hi,
I've started started using this module and it's working well for my needs. I'm realizing though that if i want a menu for each group it will take me a while to create them. Has anyone come up with a solution for this?

CommentFileSizeAuthor
#5 og_menu-742276.patch2.03 KBjide
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcp’s picture

Looking at the code, for all new groups, you should get a menu created automatically.

For existing groups, you should be able to edit your existing group nodes and save them without making any changes -- a menu should be created automatically for you.

You can use Views Bulk Operations to automate this process -- it might take some digging to figure it out.

dtarc’s picture

Yes, this is what I did, it worked well for me.

pyxio’s picture

I am trying to figure out the same thing. What I think is logical is that a menu item exists for every content type that can post into a group. Every new group should have a default menu with these items. It seems so basic I know it must be easy to do but I can't figure it out. If my group has content types news and jobs for example, how do i get a menu that has News and Jobs in it? Any advice would be much appreciated. Thanks.

bonobo’s picture

@iteego - your question doesn't really relate to the original issue.

You solution, however, is not with OG Menu, but with the Views module. Set up a view that filters by content type, sorts by date posted, and has a group nid as the argument.

jide’s picture

Title: Automatically create a menu for each group » Add actions to batch create and delete menus
Assigned: Unassigned » jide
Category: support » feature
Status: Active » Needs review
FileSize
2.03 KB

Here is a patch that adds actions to create and delete group menus. It can be used with VBO.

jide’s picture

Status: Needs review » Fixed

Committed to CVS.

marcp’s picture

One quick comment on the patch -- on this line it would probably be good to remove the em tag since the %node_title will get sent through theme_placeholder() or its override:

        drupal_set_message(t('A menu already exists for <em>%node_title</em>.', array('%node_title' => $node->title)));

Status: Fixed » Closed (fixed)

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

jeffschuler’s picture

Status: Closed (fixed) » Active

Did this actually make it into 6.x?

I don't see the code in 6.x-2.4 or 6.x-2.x-dev, and it looks like the commit that lists this doesn't actually add it...

jide’s picture

This is because when og_menu module had been flagged as insecure, the dev branch was deactivated and since then commits on this branch were "ghosts", so it created a mess... I contacted the security team several times back then about this problem but did not get any answer. I'll try to find these commits on my local machine and recontact the security team about this.

jeffschuler’s picture

Thanks. FWIW, I was able to commit the patch to 6.x-2.4 and use it.

pfrenssen’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing, since the Drupal 6 version of OG Menu is no longer supported. If this issue is still relevant for the currently supported versions (D7 and D8) then feel free to update the version and reopen the issue.