I have a localized menu item which points back to the same Views view, but in one language the menu becomes unactive and so the menu block is not shown.

Problem is in menu_block.module, lines 268-269:

// Get the tree pruned for just the active trail.
$tree = menu_tree_page_data($config['menu_name']);

problem gets fixed with this:

$tree = menu_tree_page_data($config['menu_name'], NULL, TRUE);

which if I understand the comment correctly is the intention: menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fluffy’s picture

GiorgosK’s picture

fluffy’s picture

wiliam_steven’s picture

yes, it cannot working too. I have looking for the solution for this, but anything can't work.

JohnAlbin’s picture

Status: Active » Closed (duplicate)

$tree = menu_tree_page_data($config['menu_name'], NULL, TRUE);

which if I understand the comment correctly is the intention: menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE)

Nope. $only_active_trail doesn't return a menu tree; it returns a breadcrumb list.

Sounds like this is a dupe of the other i18n issues.