Hello,

I am working on a website that should have 2 different menu, depending on which section you are (and not on roles). So I wanted to desactivate the default menu on page.tpl.php and then to customize 2 menu block. I add these in the "banner region" and set up when menu1 should appear (Only the listed pages > section1/*). This is working fine but I can't see the expanding menu. The reason is that the expanded items are in the banner region and stay under the content region. So I tryed to:

- set up z-index on regions. It works on Firefox and Safari but not on Google Chrome.
- set up Nice-menu but same problem
- set up Superfish but same problem
- set up menu block but same problem

Do you have a solution for me that works for every browser?
Thank you beforehand!

Comments

willbxl’s picture

Assigned: willbxl » Unassigned
willbxl’s picture

I found the solution:

1/ I ask to print the block in the header_menu_inside region: print render($page['header_menu_inside']); in the page.tpl.php

<!-- Header Menu. -->
<div id="header-menu">

<div id="header-menu-inside">
    <?php /* 
	if (module_exists('i18n_menu')) {
	$main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
	} else {
	$main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu')); 
	}
	print drupal_render($main_menu_tree);
	*/
	?>
	<?php print render($page['header_menu_inside']); ?> 
	
</div><!-- EOF: #header-menu-inside -->

</div><!-- EOF: #header-menu -->

2/ I created this region in my_subtheme.info: regions[header_menu_inside] = Header

3/ I put the "Main menu" block and the "CUstom menu" block in the Header region

4/ I set up rules inside the block (appear only with my-path/*

Enjoy!