Remove superflous plugin, adjust viewhelper to use exsiting plugin
This commit is contained in:
@@ -99,6 +99,17 @@ routeEnhancers:
|
||||
extension: EpProducts
|
||||
plugin: product_detail
|
||||
routes:
|
||||
-
|
||||
routePath: '/detail/{product}'
|
||||
_controller: 'Product::detail'
|
||||
_arguments:
|
||||
product: product
|
||||
-
|
||||
routePath: '/detail/{product}/{hotel}'
|
||||
_controller: 'Product::detail'
|
||||
_arguments:
|
||||
product: product
|
||||
hotel: hotel
|
||||
-
|
||||
routePath: '/detail/{product_uid}/{hotel_uid}'
|
||||
_controller: 'Product::detail'
|
||||
@@ -113,6 +124,14 @@ routeEnhancers:
|
||||
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
|
||||
@@ -130,24 +149,6 @@ routeEnhancers:
|
||||
hotel_uid: \d+
|
||||
date_from: '\d{4}\-\d{2}\-\d{2}'
|
||||
date_to: '\d{4}\-\d{2}\-\d{2}'
|
||||
BookingLinkPlugin:
|
||||
type: Extbase
|
||||
extension: EpProducts
|
||||
plugin: booking_link
|
||||
limitToPages:
|
||||
- 1846
|
||||
routes:
|
||||
-
|
||||
routePath: '/{product}'
|
||||
_controller: 'Product::detail'
|
||||
_arguments:
|
||||
product: product
|
||||
defaultController: 'Product::detail'
|
||||
aspects:
|
||||
product:
|
||||
type: PersistedAliasMapper
|
||||
tableName: tx_epproducts_domain_model_product
|
||||
routeFieldName: path_segment
|
||||
ContingentsIcalPlugin:
|
||||
type: Extbase
|
||||
extension: EpProducts
|
||||
|
||||
Reference in New Issue
Block a user