By mojobaer on
I've created a new navigation block (called My Navigation) and have an Admin menu in it. I've got the Expand set to 'No', but the Admin menu items do not expand when I click the Admin menu, as it does on the standard Navigation Block. When I change the Expand to 'Yes' they are expanded (always).
I've searched and seen the problems with aliases and expanding. But the only way I know of getting the admin functions are using paths that look like 'admin/access'.
Does anyone know what the issue is or a good workaround?
Thanks!
Comments
More Info
Indeed, when I test a menu called Level 1 with a menuitem called Level 2 and both point to 'admin/access' and Expanded=No, then the menus will never expand.
When I change the paths for both Level 1 and Level 2 to node/23, then the behavior works as expected - it expanded when Level 1 is clicked.
Is this a bug?
And more importantly, how can I create a new menu with Admin menuitems (that I only know how to access via the aliases)?
My Workaround
The bug seems to only occur when the parent menu has an alias. So my workaround will be to use a static page as the Main Menu path that welcomes me to my administrative functions!
Reason
The reason this happens is that the program checks the MAIN node URL to see if it should be expanded. Therefore, if it sees an alias, it won't register it as having any need to expand.
There are some workarounds, though, like the S/P Ajax module or Nice Menus. Beyond that, this might make a worthy bug to put up for Drupal CVS, so it gets fixed.
it works
You can make aliases for your pages, but when you make the menu entries, you need to make sure to use the "node/23" notation for the link.
Doesn't work with node/x
I have precisely the same problem. I edited my menu link to refer to my node (node/5), but the menu still does not expand.
Bug link for this item
Jaza addresses this bug very well in :
http://drupal.org/node/64811
The problem is having two menu items that point to the same page.