diff --git a/config/sites/ser/config.yaml b/config/sites/ser/config.yaml index 8336a08b..db56a91b 100644 --- a/config/sites/ser/config.yaml +++ b/config/sites/ser/config.yaml @@ -23,6 +23,62 @@ languages: flag: de languageId: 0 rootPageId: 2395 +routeEnhancers: + ProductDetailPlugin: + type: Extbase + extension: EpProducts + plugin: product_detail + routes: + - + routePath: '/detail/{product}' + _controller: 'Product::detail' + _arguments: + product: product + - + routePath: '/detail/{product_uid}/{hotel_uid}' + _controller: 'Product::detail' + _arguments: + product_uid: product + hotel_uid: hotel + - + routePath: '/detail/{product}/{hotel}' + _controller: 'Product::detail' + _arguments: + product: product + hotel: hotel + - + routePath: '/detail/{date_from}/{date_to}' + _controller: 'Product::detail' + _arguments: + date_from: dateFrom + date_to: dateTo + defaultController: 'Product::detail' + aspects: + product: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_product + routeFieldName: path_segment + hotel: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_hotel + routeFieldName: path_segment + product_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_product + routeFieldName: uid + hotel_uid: + type: PersistedAliasMapper + tableName: tx_epproducts_domain_model_hotel + routeFieldName: uid + date_from: + type: PassthroughMapper + date_to: + type: PassthroughMapper + requirements: + product_uid: \d+ + hotel_uid: \d+ + date_from: '\d{4}\-\d{2}\-\d{2}' + date_to: '\d{4}\-\d{2}\-\d{2}' routes: - route: robots.txt