So, briefly, I'm just trying to change a primary links menu item from 'Groups' to 'Groups - Projects'.

Seems simple enough. Done it a thousand times. It even works for a few minutes. Then, magically, goes back to 'Groups'. A visit to the primary links config page and it's as if nothing was ever changed. Kinda cool. Kinda annoying.

The primary links don't seem to have a Strongarm entry, but I'm not too familiar with that module.

A - How can I get this change done?
B - What's making it go back?

Thanks.

CommentFileSizeAuthor
#15 screenshot_022.png37.49 KBmstef
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mstef’s picture

Category: support » bug

This is actually sort of a bug in Commons. Those two drop-down menus are created manually on installation. If one was to disable then reenable Commons Core, that causes big problems with the menus - without going into detail. The *fix* was to purge and recreate those dropdowns inside hook_menu which runs everytime the menu cache is cleared. Forgetting that users would want to customize those two drop downs, this will revert them quite often. The next release of Commons will take care of this issue a different way.

mstef’s picture

For now, clear out commons_menu in commons.module.

Mercury500’s picture

Status: Active » Closed (fixed)

Thanks.

I removed lines 10-79 of commons.module.

Works. And no dead kittens yet.

mstef’s picture

No no no...

Just remove line 15

mstef’s picture

Status: Closed (fixed) » Active

And this needs to remain open because it's not fixed.

najibx’s picture

got it

Crom’s picture

Thanks for the tip mikestefff, I tried it but found that commenting line 15 causes the expanded menus to 'stick' meaning that as I roll the mouse along the menu I can get all the expanded drop-down menu lists visible at the same time. Any ideas what might be causing this?

Wolfflow’s picture

FYI, there is a good work around without hacking Drupal Commons core:

see -> http://commons.acquia.com/discussion/bug-customizing-primary-links#comme...

mstef’s picture

Status: Active » Closed (fixed)

The fix has been committed and will be available in the next release.

dfylstra’s picture

Status: Closed (fixed) » Active

This issue is NOT fixed in the recently (1/14/11) released Drupal Commons 1.2. When I updated my site to 1.2, this problem reappeared and again messed up the Primary Links on my site.

There's no change in 1.2 to the code in commons.module that causes this behavior. Commenting out line 15 does overcome the problem, as it did in Drupal Commons 1.1.

Maybe this will be fixed in 1.3... but until it is actually fixed, IMO this issue should remain open.

mstef’s picture

Status: Active » Closed (fixed)

1.2 became a security release - just updating modules that had security issues.

1.3, which is coming soon, fixes this, and many other issues.

growltiger’s picture

I am still having a similar issues in 1.3. Namely that primary links customizations don't stick at all, they don't even show up, though the nodes are created.

mstef’s picture

So, you're trying to create primary link items via node creation? To link to a node off the menu?

mstef’s picture

I just tried creating a page node, with a menu entry, and it went without a problem.

mstef’s picture

FileSize
37.49 KB