php - Want to render superfish_menu_tree in main_menu_tree place dupal -
sir, have main menu rendered in page.tpl.php
<div class="menu_wrapper"> <nav id="main-menu" role="navigation"> <a class="nav-toggle" href="#">navigation</a> <div class="menu-navigation-container"> <?php print drupal_render($main_menu_tree); ?> <div class="clear"></div> </nav>
in here rendered main_menu_tree, want replace page superfish menu.
use block_load follows, replace
<?php print drupal_render($main_menu_tree); ?>
with
<?php $block = block_load('superfish', 1); $output = render(_block_get_renderable_array(_block_render_blocks(array($block)))); print $output; ?>
Comments
Post a Comment