Add configurable target event list ID for event filter module

This commit is contained in:
Jürgen Mummert
2026-02-22 11:27:26 +01:00
parent 3a24b24b84
commit e3cc85115b
5 changed files with 223 additions and 3 deletions
@@ -27,10 +27,12 @@ class EventFilterController extends AbstractFrontendModuleController
{
$calendarIds = array_map('intval', StringUtil::deserialize($model->cal_calendar, true));
$eventIds = $this->findUpcomingEventIds($calendarIds);
$targetEventListId = trim((string) ($model->eventListDomId ?? ''));
$template->set('tagButtons', $this->findTagButtons($eventIds));
$template->set('locations', $this->findLocations($eventIds));
$template->set('organizations', $this->findOrganizations($eventIds));
$template->set('targetEventListId', '' !== $targetEventListId ? $targetEventListId : 'eventlist');
return $template->getResponse();
}