I've created a menu and two blocks: one for the 1st level, one for the 2nd level menu items. Everything works fine ;-)

Now I want to print the active menu of the 1st level within the block for the 2nd level menu items. I've already found the right place to do this: I created a file menu-block-wrapper-menu-NAMEOFMYMENU.tpl.php located within my template directory. Now I can print anything I want within the block for the 2nd level menu items:

if ($settings[admin_title] == 'NAME_OF_THE_BLOCK') {
print 'Hello World!';
}

But how can I get the active menu item? I've already tried to use menu_get_item(), but this way, I get only the name of the article.

Any suggestions are appreciated!

Comments

JohnAlbin’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)