Widget: Show event name and description on level 2 in org > event > date navigation

This commit is contained in:
Raphael Michel
2021-01-19 16:40:44 +01:00
parent 0f30958937
commit 65ff065f02
2 changed files with 29 additions and 1 deletions

View File

@@ -398,6 +398,10 @@ class WidgetAPIProductList(EventListMixin, View):
self.request.event.settings.event_list_type = "calendar"
data['list_type'] = list_type = 'calendar'
if hasattr(self.request, 'event'):
data['name'] = str(request.event.name)
data['frontpage_text'] = str(rich_text(request.event.settings.frontpage_text, safelinks=False))
cache_key = ':'.join([
'widget.py',
'eventlist',