Menu Management¶
Backend Menu¶
Register Menu for Backend¶
Register menus for an extension
----------
> [backend]/extension/module/[ncommerce]/[pos]/init.php
<?php
...
public function getMenus()
{
return array(
array(
'title' => 'POS',
'name' => 'pos',
'link' => 'extension/ncommerce/pos/index',
'icon' => 'fas fa-fw fa-laptop',
'target' => '_self',
'status' => 'Active',
'parent_id' => 0,
'priority' => 1,
'shortcut' => 'yes',
)
);
}
...
Register menus from backend
----------
login into backend > System > Menu Management > Menu Management > Add New
Manage Properties¶
Modify menu properties. i.e. parent, priority > login into backend > System > Menu Management > Menu Properties
Sorting Menus¶
Sorting backend menus > login into backend > System > Menu Management > Menu Sorting