Enable limiting of dates on detail pages according to teasers

This commit is contained in:
Björn Fromme
2020-02-15 17:26:08 +01:00
parent a130eca733
commit f58d503529
13 changed files with 109 additions and 75 deletions
+11
View File
@@ -109,6 +109,12 @@ routeEnhancers:
_arguments:
product_uid: product
hotel_uid: hotel
-
routePath: '/angebot/{date_from}/{date_to}'
_controller: 'Product::detail'
_arguments:
date_from: dateFrom
date_to: dateTo
defaultController: 'Product::detail'
aspects:
product_uid:
@@ -119,6 +125,11 @@ routeEnhancers:
type: PersistedAliasMapper
tableName: tx_epproducts_domain_model_hotel
routeFieldName: uid
requirements:
product_uid: '\d'
hotel_uid: '\d'
date_from: '\d{4}-\d{2}-\d{2}'
date_to: '\d{4}-\d{2}-\d{2}'
BookingLinkPlugin:
type: Extbase
extension: EpProducts