From 4758908e6089a8a687dc84e28978731351f7402f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 7 Jun 2019 14:41:53 +0200 Subject: [PATCH] Refine route enhancer configuration --- config/sites/ep-reisen/config.yaml | 113 +++++++++++++++++++---- config/sites/ski-boarderweek/config.yaml | 29 ++++++ config/sites/snowzone/config.yaml | 29 ++++++ config/sites/unichamp/config.yaml | 29 ++++++ 4 files changed, 184 insertions(+), 16 deletions(-) diff --git a/config/sites/ep-reisen/config.yaml b/config/sites/ep-reisen/config.yaml index 2302b241..27e3dcb8 100644 --- a/config/sites/ep-reisen/config.yaml +++ b/config/sites/ep-reisen/config.yaml @@ -102,16 +102,21 @@ routeEnhancers: plugin: product_detail routes: - - routePath: '/{teamer_name}' - _controller: 'Team::show' + routePath: '/detail/{product_uid}/{hotel_uid}' + _controller: 'Product::detail' _arguments: - teamer_name: member - defaultController: 'Team::show' + product_uid: product + hotel_uid: hotel + defaultController: 'Product::detail' aspects: - teamer_name: + product_uid: type: PersistedAliasMapper - tableName: tx_epproducts_domain_model_teammember - routeFieldName: path_segment + tableName: tx_epproducts_domain_model_product + routeFieldName: uid + hotel_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_hotel + routeFieldName: uid SearchResultPlugin: type: Extbase extension: EpProducts @@ -120,10 +125,15 @@ routeEnhancers: - 41 routes: - - routePath: '/{filtersettings}' + routePath: '/ergebnis/{filter_settings}' _controller: 'Search::searchresult' _arguments: - filtersettings: filterSettings + filter_settings: filterSettings + - + routePath: '/ergebnis' + _controller: 'Search::searchresult' + requirements: + filter_settings: '[A-Z0-9%\-]+' defaultController: 'Search::searchresult' ResellerPlugin: type: Extbase @@ -149,15 +159,15 @@ routeEnhancers: reseller_code: reseller type: type - - routePath: '/{reseller_code}/copypaste/{product_id}' + routePath: '/{reseller_code}/copypaste/{product_uid}' _controller: 'Reseller::copypaste' _arguments: reseller_code: reseller - product_id: product + product_uid: product requirements: reseller_code: \w+ type: \w+ - product_id: \d+ + product_uid: \d+ aspects: reseller_code: type: PersistedAliasMapper @@ -168,7 +178,78 @@ routeEnhancers: map: google: google facebook: facebook - product_id: - type: StaticRangeMapper - start: '1' - end: '1000' + product_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_product + routeFieldName: uid + AjaxRequests: + type: Extbase + extension: epproducts + plugin: ajax + limitToPages: [855] + routes: + - + routePath: '/searchresult' + _controller: 'AjaxSearch::searchresult' + - + routePath: '/dates/{product_uid}/{hotel_uid}' + _controller: 'AjaxDate::dates' + _arguments: + product_uid: product + hotel_uid: hotel + - + routePath: '/filterpanel/autocomplete' + _controller: 'AjaxFilterpanel::autocomplete' + - + routePath: '/searchbar/options' + _controller: 'AjaxSearchbar::options' + - + routePath: '/searchbar/reset' + _controller: 'AjaxSearchbar::reset' + - + routePath: '/pricetable/{product_uid}/{hotel_uid}' + _controller: 'AjaxTable::pricetable' + _arguments: + product_uid: product + hotel_uid: hotel + - + routePath: '/pricetable' + _controller: 'AjaxTable::pricetableHtml' + - + routePath: '/calendar/range' + _controller: 'AjaxCalendar::range' + - + routePath: '/calendar/contingents' + _controller: 'AjaxCalendar::contingents' + - + routePath: '/calendar/availableRooms' + _controller: 'AjaxCalendar::availableRooms' + - + routePath: '/contingent/list' + _controller: 'AjaxContingent::list' + - + routePath: '/contingent/rooms' + _controller: 'AjaxContingent::rooms' + - + routePath: '/watchlist' + _controller: 'AjaxWatchlist::list' + requirements: + product_uid: \d+ + hotel_uid: \d+ + aspects: + product_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_product + routeFieldName: uid + hotel_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_hotel + routeFieldName: uid + PageTypeSuffix: + type: PageType + default: '/' + index: '' + map: + '/': 0 + '/json': 1701 + '/html': 1702 diff --git a/config/sites/ski-boarderweek/config.yaml b/config/sites/ski-boarderweek/config.yaml index 6c25e2dd..2758da4b 100644 --- a/config/sites/ski-boarderweek/config.yaml +++ b/config/sites/ski-boarderweek/config.yaml @@ -42,3 +42,32 @@ routeEnhancers: type: PersistedAliasMapper tableName: tx_epproducts_domain_model_teammember routeFieldName: path_segment + AjaxRequests: + type: Extbase + extension: epproducts + plugin: ajax + limitToPages: [880] + routes: + - + routePath: '/pricetable' + _controller: 'AjaxTable::pricetable' + - + routePath: '/eventpricetable/{product_uid}' + _controller: 'AjaxTable::eventPricetable' + _arguments: + product_uid: product + requirements: + product_uid: \d+ + aspects: + product_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_product + routeFieldName: uid + PageTypeSuffix: + type: PageType + default: '/' + index: '' + map: + '/': 0 + '/json': 1701 + '/html': 1702 diff --git a/config/sites/snowzone/config.yaml b/config/sites/snowzone/config.yaml index 2e1e03ab..f9388f79 100644 --- a/config/sites/snowzone/config.yaml +++ b/config/sites/snowzone/config.yaml @@ -42,3 +42,32 @@ routeEnhancers: type: PersistedAliasMapper tableName: tx_epproducts_domain_model_teammember routeFieldName: path_segment + AjaxRequests: + type: Extbase + extension: epproducts + plugin: ajax + limitToPages: [878] + routes: + - + routePath: '/pricetable' + _controller: 'AjaxTable::pricetable' + - + routePath: '/eventpricetable/{product_uid}' + _controller: 'AjaxTable::eventPricetable' + _arguments: + product_uid: product + requirements: + product_uid: \d+ + aspects: + product_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_product + routeFieldName: uid + PageTypeSuffix: + type: PageType + default: '/' + index: '' + map: + '/': 0 + '/json': 1701 + '/html': 1702 diff --git a/config/sites/unichamp/config.yaml b/config/sites/unichamp/config.yaml index 0e36e24c..8f5f8885 100644 --- a/config/sites/unichamp/config.yaml +++ b/config/sites/unichamp/config.yaml @@ -42,3 +42,32 @@ routeEnhancers: type: PersistedAliasMapper tableName: tx_epproducts_domain_model_teammember routeFieldName: path_segment + AjaxRequests: + type: Extbase + extension: epproducts + plugin: ajax + limitToPages: [879] + routes: + - + routePath: '/pricetable' + _controller: 'AjaxTable::pricetable' + - + routePath: '/eventpricetable/{product_uid}' + _controller: 'AjaxTable::eventPricetable' + _arguments: + product_uid: product + requirements: + product_uid: \d+ + aspects: + product_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_product + routeFieldName: uid + PageTypeSuffix: + type: PageType + default: '/' + index: '' + map: + '/': 0 + '/json': 1701 + '/html': 1702