The active menu don't work with i18n multilingual menu blocks.

If I change the /jstools/activemenu/modules/menu.inc to that:

<?php
// $Id: menu.inc,v 1.1 2007/01/23 20:14:19 nedjo Exp $

function menu_activemenu() {
  $items = array();
  $root_menus = menu_get_root_menus();
  foreach (array_keys($root_menus) as $mid) {
    $items['#block-menu-'. $mid] = 'activemenu/menu';
  }

$items['#block-i18nblocks-5'] = 'activemenu/menu';
  
  return $items;
}
it is work fine, but this solution not dynamicly :-(

How can I give the multilingual menu $mid?

Comments

dorion’s picture

This is my dirty hack!

function menu_activemenu() {                                                                                                                                          
  $items = array();                                                                                                                                                   
  $root_menus = menu_get_root_menus();                                                                                                                                
  foreach (array_keys($root_menus) as $mid) {                                                                                                                         
    $items['#block-menu-'. $mid] = 'activemenu/menu';                                                                                                                 
  }                                                                                                                                                                   
                                                                                                                                                                      
  $items['.block-i18nblocks'] = 'activemenu/menu';                                                                                                                    
                                                                                                                                                                      
  return $items;                                                                                                                                                      
} 
nedjo’s picture

Status: Active » Fixed

I believe this is now fixed due to improvements in i18n.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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