How can I change the order of the left menu items

Caroline Milk Posted in Component Development 4 years ago

Hello,

When installing the new Component, it appears in the last position, sometimes in the first or in the middle of the menu sidebar on the left.
I want to choose the priority of these items ... how to do?

Replies
Breton Caroline Milk Replied 4 years ago

Thank you Arsalan!

And the Links item, where do I place the priority?

Indonesian Arsalan Shah Replied 4 years ago

You have to unregistered all menus and then register it again example

ossn_register_menu_item('newsfeed', 'array(
        'name' => 'google_search',           
        'text' => 'Google',
        'href' => 'http://google.com',
        'section' => 'links',
        'priority' => 1 or any other number
));

.