Hello Everyone,
Please i would appreciate it if anyone could assist me in making the dropdown code below popup with the site's menu. It popups empty.
Thanks.
elgg_register_menu_item('topbar', array(
'href' => '#navigation-box',
'rel' => 'popup',
'class' => 'elgg-button elgg-button-dropdown',
'text' => elgg_echo(''),
'priority' => 101,
'section' => 'alt',
));
$content = elgg_view_menu('site');
echo elgg_view_module('dropdown', '', $content, array('id' => 'navigation-box'));
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Mercyspree@jones
Mercyspree - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- Mercyspree@jones
Mercyspree - 0 likes
- mani@kmmani_ker
mani - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- Mercyspree@jones
Mercyspree - 0 likes
You must log in to post replies.you registered it for the topbar menu, but then called the site menu.
Yes what i wanted is to show the site menu in dropdown when an icon is clicked in the topbar.
Does this maybe vaguely look like what you're thinking ?
Yes this is exacly it.
How can it be done? are there any plugins for it which I missed?
how? elgg api code.
plugins? nope.
I'm looking into some coding. I think it can be done.