Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

How to place new menu on specific order?

Magsud Hajiyev   ( User )

Commented 4 years ago

Hello,

I've added new menu item but it shows up at the very top of navbar. How can I display it on specific order. And plus how can I add icon to it?

$event->menu->dropdown('Depo', function($menu) {
$menu->dropdown('Stok', function ($sub) {
$sub->url('modules/warehouse/water', 'Deniz Yolu Depo');
$sub->url('modules/warehouse/air', 'Hava Yolu Depo');
});
});

Denis Dulici   ( Admin )

Commented 4 years ago

Hello Magsud,

Try this one:

$event->menu->dropdown('Depo', function($menu) {
$menu->dropdown('Stok', function ($sub) {
$sub->url('modules/warehouse/water', 'Deniz Yolu Depo');
$sub->url('modules/warehouse/air', 'Hava Yolu Depo');
}, 1);
}, 5);

Regards

Magsud Hajiyev   ( User )

Commented 4 years ago

Hello, unfortunately it didn't work.

Denis Dulici   ( Admin )

Commented 4 years ago

Hello,

It works fine for the core:

https://github.com/akaunting/akaunting/blob/master/app/Listeners/Menu/AddAdminItems.php#L53

Regards

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions