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' => [],
]
],
Dear Nikolai,
Many thanks for your message and the links you provided.
This was really helpful and after several attempts, I finally succeed with the extend method.
I have another question :
How can I replace the text logo by an image logo ?
Thanks again.
Have a nice day.
Thierry
The links below are for previous Elgg versions but should work for the current release as well:
https://elgg.org/discussion/view/2804746/logo-in-default-theme-in-all-stable-elgg-version
https://elgg.org/discussion/view/2849336/how-to-change-the-logo-from-text-to-image
I forgot to mention that the easiest way to extend engine/theme.php is to use a hook in elgg_plugin.php instead of class:
'theme' => [ 'body-background-color' => '#000', 'anchor-color' => '#000000', ],
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.