Closed yajra closed 8 years ago
Work around atm, is to bind the parent menu to a variable. Or maybe a better approach than what I am used to be doing.
Menu::make('example', function($menu) {
$myMenu = $menu->add('My Menu', '/espresso');
$myMenu->add('Americano', '/espresso/americano');
$myMenu->add('Breve', '/espresso/breve');
$myMenu->add('Cappuccino', '/espresso/cappuccino');
$myMenu->add('Latte', '/espresso/latte');
});
Have updated my menu like this. Up to you if you want to fix this. Just note that it breaks on my installation and maybe others too. ^_^. Thanks!
D'oh, silly me - I know what's wrong - I'll have this patched in a couple minutes.
Give v2.2.2 a go.
Slugs will be properly camel cased, e.g. "My Menu" will become "myMenu".
Works great! Thanks a lot!
It seems like using the latest version (v2.2.1) breaks the menu sub-items where parent menu uses two words or more like below: