I have a menu item for my location map tucked away a couple levels deep and now I don't have a breadcrumb or sibling menu :(

Comments

mstrelan’s picture

I was able to fix this in my custom module with the following code.

<?php
/**
 * Implements hook_init().
 */
function MYMODULE_init() {
  // Set the active menu for the location map page.
  if (arg(0) == 'locationmap' && module_exists('locationmap')) { 
    menu_set_active_menu_names(array('main-menu'));
  }  
}
?>

This is specific to my site though, as it may not be main-menu that you want to set it to. I have a feeling there are a number of core bugs that are responsible for this issue.

rupertj’s picture

Status: Active » Closed (cannot reproduce)

I don't think this issue's really anything to do with locationmap. If you add a menu item into your site's menu and point it at /locationmap, it works fine. (I just tried it to make sure).