-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
RouteEnhancers.yaml
142 lines (138 loc) Β· 3.9 KB
/
RouteEnhancers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
routeEnhancers:
Calendarize:
type: Extbase
extension: Calendarize
plugin: Calendar
# limitToPages: []
routes:
- routePath: '/{calendarize_event_label}/{index}'
_controller: 'Calendar::detail'
- routePath: '/{calendarize_event_label}/{index}.{format}'
_controller: 'Calendar::detail'
- routePath: '/{calendarize_year_label}/{year}'
_controller: 'Calendar::year'
- routePath: '/{calendarize_quarter_label}/{year}/{quarter}'
_controller: 'Calendar::quarter'
- routePath: '/{calendarize_month_label}/{year}/{month}'
_controller: 'Calendar::month'
- routePath: '/{calendarize_week_label}/{year}/{week}'
_controller: 'Calendar::week'
- routePath: '/{calendarize_day_label}/{year}/{month}/{day}'
_controller: 'Calendar::day'
- routePath: '/{calendarize_result_page_label}/{currentPage}'
_controller: 'Calendar::result'
- routePath: '/{calendarize_page_label}/{currentPage}'
_controller: 'Calendar::list'
- routePath: '/export.{format}'
_controller: 'Calendar::list'
defaultController: 'Calendar::list'
# requirements:
# Specify kind of parameters, if the aspects are not used.
# year: '\d{4}'
# quarter: '\d'
# month: '\d{1,2}'
# week: '\d{1,2}'
# day: '\d{1,2}'
aspects:
index:
type: PersistedAliasMapper
tableName: tx_calendarize_domain_model_index
routeFieldName: slug
year:
type: StaticRangeMapper
start: '2015'
end: '2040'
quarter:
type: StaticRangeMapper
start: '1'
end: '4'
month:
type: StaticRangeMapper
start: '1'
end: '12'
week:
type: StaticRangeMapper
start: '1'
end: '53'
day:
type: StaticRangeMapper
start: '1'
end: '31'
currentPage:
type: StaticRangeMapper
start: '1'
end: '1000'
format:
# Use mapper to prevent cHash
type: StaticValueMapper
map:
'ics': 'ics'
'atom': 'atom'
'xml': 'xml'
# Localization
calendarize_event_label:
type: LocaleModifier
default: 'event'
localeMap:
- locale: 'de_.*'
value: 'termin'
calendarize_year_label:
type: LocaleModifier
default: 'year'
localeMap:
- locale: 'de_.*'
value: 'jahr'
calendarize_quarter_label:
type: LocaleModifier
default: 'quarter'
localeMap:
- locale: 'de_.*'
value: 'quartal'
calendarize_month_label:
type: LocaleModifier
default: 'month'
localeMap:
- locale: 'de_.*'
value: 'monat'
calendarize_week_label:
type: LocaleModifier
default: 'week'
localeMap:
- locale: 'de_.*'
value: 'woche'
calendarize_day_label:
type: LocaleModifier
default: 'day'
localeMap:
- locale: 'de_.*'
value: 'tag'
calendarize_page_label:
type: LocaleModifier
default: 'page'
localeMap:
- locale: 'de_.*'
value: 'seite'
calendarize_result_page_label:
type: LocaleModifier
default: 'result-page'
localeMap:
- locale: 'de_.*'
value: 'ergebnis-seite'
CalendarizeBooking:
type: Extbase
extension: Calendarize
plugin: Booking
routes:
- routePath: '/{calendarize_booking_label}/{index}'
_controller: 'Booking::booking'
aspects:
index:
type: PersistedAliasMapper
tableName: tx_calendarize_domain_model_index
routeFieldName: slug
calendarize_booking_label:
type: LocaleModifier
default: 'booking'
localeMap:
- locale: 'de_.*'
value: 'buchung'