This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

denbatyokhin
denbatyokhin

Hi all,

Can i set 2 main menu in backed from one plugin?

My code:

public function registerNavigation()
    {
        return [
            'catalog' => [
                'label'       => 'masterdom.catalog::lang.general.catalog',
                'url'         => Backend::url('masterdom/catalog/cities'),
                'icon'        => 'icon-list-alt',
                'permissions' => ['masterdom.catalog.*'],
                'order'       => 300,
                'sideMenu' => [
                    'cities' => [
                        'label'       => 'masterdom.catalog::lang.cities.cities',
                        'icon'        => 'icon-map-marker',
                        'url'         => Backend::url('masterdom/catalog/cities'),
                        'order'       => 200,
                    ],
                    'shops' => [
                        'label'       => 'masterdom.catalog::lang.shops.shops',
                        'icon'        => 'icon-building-o',
                        'url'         => Backend::url('masterdom/catalog/shops'),
                        'order'       => 300,
                    ],
                ]
            ],
            'dictionary' => [
                'label'       => 'masterdom.catalog::lang.general.dictionaries',
                'url'         => Backend::url('masterdom/dictionary/phonegroups'),
                'icon'        => 'icon-list-ul',
                'permissions' => ['masterdom.catalog.*'],
                'order'       => 350,
                'sideMenu' => [
                    'phonegroups' => [
                        'label'       => 'Группа телефонов',
                        'icon'        => 'icon-phone',
                        'url'         => Backend::url('masterdom/dictionary/phonegroups'),
                        'order'       => 200,
                    ],
                ]

            ],
        ];

but my phonegroups controller not handled this url Backend::url('masterdom/dictionary/phonegroups') Is there any solution?

Thanks!

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.