valmiki / event_manager_past_events
Adds a 'Past Events' tab to the Event Manager plugin, extending its functionality without modifying core files.
Package info
github.com/valmiki/event_manager_past_events
Type:elgg-plugin
pkg:composer/valmiki/event_manager_past_events
Requires
- coldtrick/event_manager: ^21.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
- elgg/elgg: <7.0
Replaces
None
README
Adds a Past tab to ColdTrick's Event Manager list view, alongside Live and Upcoming, listing events that have already ended (most recent first). Works site-wide and within group event listings, without modifying any event_manager core files.
Why is this useful?
Say you use the event_manager for a series of lessons and students need to be able to view past lessons. It is possible to find them via the Calendar view, but most often – when there are many lessons – it is far easier to locate them in the List View under the tab "Past".
Requirements
- Elgg >= 7.0
- Event Manager >= 21.0
Installation
Composer (recommended):
composer require valmiki/event_manager_past_events
…then enable Event Manager Past Events in the Elgg admin plugins screen (it must be ordered after event_manager; the plugin declares this dependency automatically).
Or copy the event_manager_past_events/ folder into your Elgg mod/ directory
and enable it.
How it works
- Registers a handler on
register/menu:filter:eventsthat appends the Past tab (seeclasses/EventManagerPastEvents/Bootstrap.php). - Adds two routes,
/event/pastand/event/past/{guid}, resolved by theresources/event/past.phpandresources/event/group_past.phpviews, which reuse event_manager's ownevent_manager/listing/{list_type}view.
License
GPL-2.0-only.