Commit 43a868f4 authored by Thomas Löffler's avatar Thomas Löffler

Fix category urls and call of list action

parent f02bc230
Pipeline #8216 passed with stages
in 3 minutes and 37 seconds
...@@ -110,6 +110,7 @@ routeEnhancers: ...@@ -110,6 +110,7 @@ routeEnhancers:
plugin: Pievent plugin: Pievent
routes: routes:
- { routePath: '/', _controller: 'Event::list' } - { routePath: '/', _controller: 'Event::list' }
- { routePath: '/{event_category}/all', _controller: 'Event::list', _arguments: {'event_category': 'overwriteDemand/category'} }
- { routePath: '/{event_title}', _controller: 'Event::detail', _arguments: {'event_title': 'event'} } - { routePath: '/{event_title}', _controller: 'Event::detail', _arguments: {'event_title': 'event'} }
- { routePath: '/{event_title}/ical', _controller: 'Event::icalDownload', _arguments: {'event_title': 'event'} } - { routePath: '/{event_title}/ical', _controller: 'Event::icalDownload', _arguments: {'event_title': 'event'} }
defaultController: 'Event::list' defaultController: 'Event::list'
...@@ -118,6 +119,10 @@ routeEnhancers: ...@@ -118,6 +119,10 @@ routeEnhancers:
type: PersistedAliasMapper type: PersistedAliasMapper
tableName: 'tx_sfeventmgt_domain_model_event' tableName: 'tx_sfeventmgt_domain_model_event'
routeFieldName: 'slug' routeFieldName: 'slug'
event_category:
type: PersistedAliasMapper
tableName: 'sys_category'
routeFieldName: 'slug'
routes: routes:
- -
route: robots.txt route: robots.txt
......
...@@ -62,9 +62,9 @@ ...@@ -62,9 +62,9 @@
<f:else> <f:else>
<f:form class="event-filter"> <f:form class="event-filter">
<f:form.select class="custom-select" name="event-filter-neu" additionalAttributes="{onchange: 'location = this.value;'}"> <f:form.select class="custom-select" name="event-filter-neu" additionalAttributes="{onchange: 'location = this.value;'}">
<option value="{f:uri.action(action: 'List', controller: 'Event', arguments: '{overwriteDemand:{category: category}}')}"><f:translate key="tx_t3org_layout.events.all_category" extensionName="t3org_layout"/></option> <option value="{f:uri.action(action: 'list', controller: 'Event', arguments: '{overwriteDemand:{category: category}}')}"><f:translate key="tx_t3org_layout.events.all_category" extensionName="t3org_layout"/></option>
<f:for each="{categories}" as="category"> <f:for each="{categories}" as="category">
<option value="{f:uri.action(action: 'List', controller: 'Event', arguments: '{overwriteDemand:{category: category}}')}" {f:if(condition: '{overwriteDemand.category} == {category.uid}', then: 'class="active" selected="selected"')}> <option value="{f:uri.action(action: 'list', controller: 'Event', arguments: '{overwriteDemand:{category: category}}')}" {f:if(condition: '{overwriteDemand.category} == {category.uid}', then: 'class="active" selected="selected"')}>
{category.title} {category.title}
</option> </option>
</f:for> </f:for>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment