Commit f1c61e87 authored by Andreas Nedbal's avatar Andreas Nedbal

Merge branch 'task/add-pagination-routes-for-events' into 'develop'

Task/add pagination routes for events

See merge request !326
parents b82e3984 ceb50ccf
Pipeline #8232 passed with stages
in 4 minutes and 54 seconds
......@@ -110,7 +110,9 @@ routeEnhancers:
plugin: Pievent
routes:
- { routePath: '/', _controller: 'Event::list' }
- { routePath: '/{page}', _controller: 'Event::list', _arguments: {'page': '@widget_0/currentPage'} }
- { routePath: '/{event_category}/all', _controller: 'Event::list', _arguments: {'event_category': 'overwriteDemand/category'} }
- { routePath: '/{event_category}/all/{page}', _controller: 'Event::list', _arguments: {'event_category': 'overwriteDemand/category', 'page': '@widget_0/currentPage'} }
- { routePath: '/{event_title}', _controller: 'Event::detail', _arguments: {'event_title': 'event'} }
- { routePath: '/{event_title}/ical', _controller: 'Event::icalDownload', _arguments: {'event_title': 'event'} }
defaultController: 'Event::list'
......@@ -123,6 +125,10 @@ routeEnhancers:
type: PersistedAliasMapper
tableName: 'sys_category'
routeFieldName: 'slug'
page:
type: StaticRangeMapper
start: '1'
end: '100'
routes:
-
route: robots.txt
......
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