You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
dimti 6784cecf5e Initial 5 years ago
assets/css Initial 5 years ago
classes Initial 5 years ago
controllers Initial 5 years ago
helpers Initial 5 years ago
lang Initial 5 years ago
partials/menu Initial 5 years ago
updates Initial 5 years ago
.gitignore Initial 5 years ago
Plugin.php Initial 5 years ago
README-RU.md Initial 5 years ago
README.md Initial 5 years ago
routes.php Initial 5 years ago

README.md

Menu plugin

Combines menu items from different plugins

To add menu items add to classPlugin

public function addToMainNavigation()
{
    return [
        '{tab_name}' => [
            '{name}' => [
                'label'       => {label},
                'url'         => {url},
                'permissions' => [{permission}, ...],
                'icon'        => {icon},
                'order'       => {order},
                //'first'       => true,
                'subMenu'     => [
                    '{tab_name}' => [
                        '{name}' => [
                            'label'       => {label},
                            'url'         => {url},
                            'permissions' => [{permission}, ...],
                            'icon'        => {icon},
                            'order'       => {order},
                        ],
                        ...
                    ],
                ...
            ],
            ...
        ],
        ...
    ];
}

Default tab name is {default_name}

For change default tab name, in Plugin.php file, declare the constant DEFAULT_MENU_NAME

If the first element is specified, it will immediately open when you click on the menu. If not, the menu or submenu page will be opened.