I've tried to change the main menu by selecting another menu, but I am not seeing the change rendered.

I'm wondering if there's something in the theme I would need to adjust to make it open to this change.

Thanks for anyone who can point me in the right direction.

CommentFileSizeAuthor
#3 1093864-menu.patch627 bytesagentrickard

Comments

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

How are you selecting another menu?

Stephen Rockwell’s picture

on domain settings page (admin/structure/domain/conf/2),

in menu selects box -> source for main links.

I'm selecting a menu that is not labeled main menu.

I'm assuming this is the way to populate different menus across different domains.

agentrickard’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new627 bytes

It sets the default variable for main links, yes.

Drupal has a problem, though. If you are placing main links with the Theme setting, this value should work fine, if you are using the default "Main links block", however, it doesn't use the same value and you need to replace that block with the 'Domain main links' block.

However, I think I see a bug. Can you try this patch?

Stephen Rockwell’s picture

that's a good catch on the bug.

It didn't seem to help my issue though. I am using menu and not a main links block.

I'm think that perhaps the main menu is hard coded into the theme without opportunity for adjust variable. any thoughts as to where i might look for theme compatability?

agentrickard’s picture

What theme are you using?

There are three normal ways to put the 'Main menu' links on the page:

1) Using the 'Main menu' toggle display setting for the theme. This calls the variable 'menu_main_links_source'. See http://api.drupal.org/api/drupal/includes--menu.inc/function/menu_main_m.... This works as expected for me, even without the patch (which only affects batch settings).

If you are using a custom theme, be sure the $main_menu variable is being processed correctly using the above function. See http://api.drupal.org/api/drupal/includes--theme.inc/function/template_p...

2) Using the core 'Main menu' block. This calls the menu directly and is not domain sensitive. See http://api.drupal.org/api/drupal/modules--menu--menu.module/function/men...

3) Using the provided 'Domain main links' block, which is domain sensitive. This works as expected for me as well.

agentrickard’s picture

Status: Needs review » Postponed (maintainer needs more info)
agentrickard’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Patch committed anyway. Reopen with more information if needed.