I want to show the events map on the home page.
I don't know what to do in te index.php maybe there is a variable for the event map.
Any ideas ?
Thanks !
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.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Bereng@Bereng
Bereng - 0 likes
Hello Nikolai, when I go to "events", I see them as a list, but on the right, I can choose to see them as a calendar or a map. You can see here : https://drive.google.com/file/d/1zBR8wP_ol7bVM6cVhv1ULxm72ErYg7DM/view?usp=sharing Thanks
- iionly@iionly
iionly - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
You may need to run 'Upgrade' via Administration to apply these changes. Now your 'Events map' module will be displayed on the main page.
You must log in to post replies.What's 'the events map' ?
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:
With this code:
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:
Elgg docs.