Adding a new Submenu to the sidebar in 5.2

Will Kenzie Posted in Beginning Developers 5 years ago

Hello everyone, I am trying to create a large array of links in the sidebar and I need an extra submenu on the sidebar. I tried finding out how to add one with no luck, I figured I would ask here.

Replies
Indonesian Arsalan Shah Replied 5 years ago

i think you are right, you should be able to add via following code in your component ossn_com.php file within init function example

<?php
function my_custom_menus_links(){
    ossn_register_sections_menu('newsfeed', array(
        'name' => 'uniquename',
        'text' => 'Text',
        'url' => 'Full URL',
        'parent' => 'parentmenua',
        'icon' => true
    ));

    ossn_register_sections_menu('newsfeed', array(
        'name' => 'uniquenameb',
        'text' => 'Text 2',
        'url' => 'Full URL',
        'parent' => 'parentmenua',
        'icon' => true
    ));
}
ossn_register_callback('ossn', 'init', 'my_custom_menus_links');
us Will Kenzie Replied 5 years ago

I am using Menubuilder, but it doesn't look like it is adding submenus but just the links. Am I missing something?
(Sorry if I didn't reply right, I am new to this site)