Hi, I would like to add a menu with a collapse bar in the sidebar menu? How can I do that?

Kevin Ngo Posted in Component Development 1 decade ago

Basically similar to the links, group, and video menus, I want to add an extra entity to that area with the same functions. Which files do I need to modify in order to do this?

Replies
Romanian Iosif Deak Replied 6 years ago

@Arsalan Shah Am adăugat aceste coduri, funcționează perfect.
But I ask myself, how can I add images to the beginning of the text? icon?

Indonesian Arsalan Shah Replied 1 decade ago

You can use following code in your component file, for example the code below creates a searchengines dropdown menu with two links.

ossn_register_sections_menu("newsfeed", array(
		"text" => "Google",
		"url" => "http://google.com",
		"section" => "searchengines",
		"icon" => true,
));
ossn_register_sections_menu("newsfeed", array(
		"text" => "Yahoo",
		"url" => "http://yahoo.com",
		"section" => "searchengines",
		"icon" => true,
));

You also need to add language files for 'searchengines' mycomponent/locale/ossn.en.php'

 "searchengines" => "Search Engines",