Re-register this hook:
'menu:filter:filter' => [
'Elgg\Menus\Filter::registerFilterTabs' => ['priority' => 1],
],
If you want your users to land on the friends tab when they click on the site menu item Bookmarks or if they type in http://yoursite/bookmarks the best way to do that is to change the configuration of the route 'default:object:bookmark'.
If you change the resource to 'bookmark/friends' it should all work I think
you can use the 'route:config', 'default:object:bookmark' hook to change the config. Make sure you register your hook in the 'load' function of your bootstrap.
You can do it by choosing one of our pre-build turnkey distributions.
We also have plugins to extend your app.
So, the map is from the Event Manager plugin (https://elgg.org/plugins/736695). Best would be to ask the developers (from Coldtrick) directly how to do it or to suggest it as as a feature request. The same developers also offer the Widget Manager plugin (https://elgg.org/plugins/384604) that allow to built an home page / index page quite easily. Maybe they could add an index page widget to the Event Manager plugin that can be added to the index page provided by the Widget Manager plugin. But the best way to proceed is probably to ask the guys from Coldtrick directly.
@Bereng
I assume you're using Elgg 4.
I also assume that you've activated Front Page Demo plugin.
If so, here's what you can do.
Create 'custom_index\events_map.php' file in your custom plugin.
(You can use the skeleton My plugin if you haven't own plugin.)
So your new file should be located at:
\mod\my_plugin\views\default\custom_index\events_map.php
With this code:
<?php
$maps_provider = elgg_get_plugin_setting('maps_provider', 'event_manager');
if (elgg_is_active_plugin('event_manager') && $maps_provider !== 'none') {
echo elgg_view_module('featured', elgg_echo('event_manager:list:upcoming'), elgg_view('event_manager/listing/map'));
}
Extend 'index/righthandside' view (or 'index/lefthandside' if you want to see your events module on the left side on the main page) with this new view in your elgg-plugin.php:
'view_extensions' => [
'index/righthandside' => [
'custom_index/events_map' => [],
]
],
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.