Add route enhancer config for site ser
This commit is contained in:
@@ -23,6 +23,62 @@ languages:
|
|||||||
flag: de
|
flag: de
|
||||||
languageId: 0
|
languageId: 0
|
||||||
rootPageId: 2395
|
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:
|
routes:
|
||||||
-
|
-
|
||||||
route: robots.txt
|
route: robots.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user