Refine route enhancer config for event sites

This commit is contained in:
Björn Fromme
2019-06-17 16:50:39 +02:00
parent 98abcbb21c
commit 032cfeb4f7
3 changed files with 45 additions and 3 deletions
+15 -1
View File
@@ -53,8 +53,17 @@ routeEnhancers:
limitToPages: [880]
routes:
-
routePath: '/pricetable'
routePath: '/pricetable/{product_uid}/{hotel_uid}'
_controller: 'AjaxTable::pricetable'
_arguments:
product_uid: product
hotel_uid: hotel
-
routePath: '/pricetablehtml/{product_uid}/{hotel_uid}'
_controller: 'AjaxTable::pricetableHtml'
_arguments:
product_uid: product
hotel_uid: hotel
-
routePath: '/eventpricetable/{product_uid}'
_controller: 'AjaxTable::eventPricetable'
@@ -62,11 +71,16 @@ routeEnhancers:
product_uid: product
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: '/'
+15 -1
View File
@@ -53,8 +53,17 @@ routeEnhancers:
limitToPages: [878]
routes:
-
routePath: '/pricetable'
routePath: '/pricetable/{product_uid}/{hotel_uid}'
_controller: 'AjaxTable::pricetable'
_arguments:
product_uid: product
hotel_uid: hotel
-
routePath: '/pricetablehtml/{product_uid}/{hotel_uid}'
_controller: 'AjaxTable::pricetableHtml'
_arguments:
product_uid: product
hotel_uid: hotel
-
routePath: '/eventpricetable/{product_uid}'
_controller: 'AjaxTable::eventPricetable'
@@ -62,11 +71,16 @@ routeEnhancers:
product_uid: product
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: '/'
+15 -1
View File
@@ -53,8 +53,17 @@ routeEnhancers:
limitToPages: [879]
routes:
-
routePath: '/pricetable'
routePath: '/pricetable/{product_uid}/{hotel_uid}'
_controller: 'AjaxTable::pricetable'
_arguments:
product_uid: product
hotel_uid: hotel
-
routePath: '/pricetablehtml/{product_uid}/{hotel_uid}'
_controller: 'AjaxTable::pricetableHtml'
_arguments:
product_uid: product
hotel_uid: hotel
-
routePath: '/eventpricetable/{product_uid}'
_controller: 'AjaxTable::eventPricetable'
@@ -62,11 +71,16 @@ routeEnhancers:
product_uid: product
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: '/'