Add route enhancer config for site ser

This commit is contained in:
Björn Fromme
2022-08-03 15:08:00 +02:00
parent 7b887bec48
commit 5f6cf58a48
+56
View File
@@ -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