FinisherSetupBE.yaml 18.4 KB
Newer Older
1
2
3
4
5
TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
6
7
8
9
          formEditor:
            translationFile:
              10: 'EXT:form/Resources/Private/Language/Database.xlf'
              20: 'EXT:sg_mail/Resources/Private/Language/Database.xlf'
10
11
12
            translationFiles:
              10: 'EXT:form/Resources/Private/Language/Database.xlf'
              20: 'EXT:sg_mail/Resources/Private/Language/Database.xlf'
13
          finishersDefinition:
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
            # TODO deprecated finisher (migration wizard required)
            MailToSenderFinisher:
              implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
              formEditor:
                iconIdentifier: 't3-form-icon-finisher'
                label: 'A Label that seems to be never used...'
                predefinedDefaults:
                  options:
                    template: ''
                    mailTo: ''
                    mailFrom: ''
                    mailFromName: ''
                    replyTo: ''
                    cc: ''
                    bcc: ''
29
            MailToUserFinisher:
30
              implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
31
32
33
34
35
              formEditor:
                iconIdentifier: 't3-form-icon-finisher'
                label: 'A Label that seems to be never used...'
                predefinedDefaults:
                  options:
36
                    template: ''
37
                    mailTo: ''
38
39
                    mailFrom: ''
                    mailFromName: ''
40
41
42
                    replyTo: ''
                    cc: ''
                    bcc: ''
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
            # TODO deprecated finisher (migration wizard required)
            MailToReceiverFinisher:
              implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
              formEditor:
                iconIdentifier: 't3-form-icon-finisher'
                label: 'A Label that seems to be never used...'
                predefinedDefaults:
                  options:
                    template: ''
                    mailTo: ''
                    mailFrom: ''
                    mailFromName: ''
                    replyTo: ''
                    cc: ''
                    bcc: ''
58
            MailToAdminFinisher:
59
              implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
60
61
62
63
64
              formEditor:
                iconIdentifier: 't3-form-icon-finisher'
                label: 'A Label that seems to be never used...'
                predefinedDefaults:
                  options:
65
                    template: ''
66
67
                    mailTo: ''
                    mailFrom: ''
68
                    mailFromName: ''
69
70
71
                    replyTo: ''
                    cc: ''
                    bcc: ''
72
73
74
75
76
77
78
          formElementsDefinition:
            Form:
              formEditor:
                editors:
                  900:
                    # Extend the finisher dropdown in the menu
                    selectOptions:
79
80
81
82
83
84
                      20:
                        value: ''
                        label: '---'
                      30:
                        value: ''
                        label: '---'
85
                      25:
86
87
                        value: 'MailToUserFinisher'
                        label: 'formEditor.elements.Form.editor.finishers.mailToUser.label'
88
                      35:
89
90
                        value: 'MailToAdminFinisher'
                        label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.label'
91
92
93
94
                propertyCollections:
                  finishers:
                    # define the finishers field
                    25:
95
                      identifier: 'MailToUserFinisher'
96
97
98
99
                      editors:
                        __inheritances:
                          10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
                        100:
100
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.label'
101
                        120:
102
                          identifier: 'template'
103
                          templateName: 'Inspector-TextEditor'
104
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.template.label'
105
                          propertyPath: 'options.template'
106
                        130:
107
                          identifier: 'mailTo'
108
                          templateName: 'Inspector-TextEditor'
109
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailTo.label'
110
111
                          propertyPath: 'options.mailTo'
                          enableFormelementSelectionButton: true
112
113
                          propertyValidators:
                            10: 'NotEmpty'
114
                            20: 'FormElementIdentifierWithinCurlyBracesInclusive'
115
                        140:
116
                          identifier: 'mailFrom'
117
                          templateName: 'Inspector-TextEditor'
118
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailFrom.label'
119
                          propertyPath: 'options.mailFrom'
120
121
122
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
123
                        160:
124
                          identifier: 'mailFromName'
125
                          templateName: 'Inspector-TextEditor'
126
127
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailFromName.label'
                          propertyPath: 'options.mailFromName'
128
                          enableFormelementSelectionButton: true
129
                          propertyValidators:
130
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
131
                        170:
132
133
                          identifier: 'replyTo'
                          templateName: 'Inspector-TextEditor'
134
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.replyTo.label'
135
                          propertyPath: 'options.replyTo'
136
137
138
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
139
                        180:
140
141
                          identifier: 'cc'
                          templateName: 'Inspector-TextEditor'
142
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.cc.label'
143
                          propertyPath: 'options.cc'
144
145
146
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
147
                        190:
148
149
                          identifier: 'bcc'
                          templateName: 'Inspector-TextEditor'
150
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.bcc.label'
151
                          propertyPath: 'options.bcc'
152
153
154
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
155
                    35:
156
                      identifier: 'MailToAdminFinisher'
157
158
159
160
                      editors:
                        __inheritances:
                          10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
                        100:
161
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.label'
162
                        120:
163
                          identifier: 'template'
164
                          templateName: 'Inspector-TextEditor'
165
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.template.label'
166
                          propertyPath: 'options.template'
167
                        130:
168
169
                          identifier: 'mailTo'
                          templateName: 'Inspector-TextEditor'
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailTo.label'
                          propertyPath: 'options.mailTo'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        140:
                          identifier: 'mailFrom'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailFrom.label'
                          propertyPath: 'options.mailFrom'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        150:
                          identifier: 'mailFromName'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailFromName.label'
                          propertyPath: 'options.mailFromName'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        160:
                          identifier: 'replyTo'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.replyTo.label'
                          propertyPath: 'options.replyTo'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        180:
                          identifier: 'cc'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.cc.label'
                          propertyPath: 'options.cc'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        190:
                          identifier: 'bcc'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.bcc.label'
                          propertyPath: 'options.bcc'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                    # TODO deprecated (migration wizard required)
                    45:
                      identifier: 'MailToSenderFinisher'
                      editors:
                        __inheritances:
                          10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
                        100:
                          label: 'formEditor.elements.Form.editor.finishers.mailToUserOld.label'
                        120:
                          identifier: 'template'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.template.label'
                          propertyPath: 'options.template'
                        130:
                          identifier: 'mailTo'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailTo.label'
                          propertyPath: 'options.mailTo'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'NotEmpty'
                            20: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        140:
                          identifier: 'mailFrom'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailFrom.label'
                          propertyPath: 'options.mailFrom'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        160:
                          identifier: 'mailFromName'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailFromName.label'
                          propertyPath: 'options.mailFromName'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        170:
                          identifier: 'replyTo'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.replyTo.label'
                          propertyPath: 'options.replyTo'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        180:
                          identifier: 'cc'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.cc.label'
                          propertyPath: 'options.cc'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        190:
                          identifier: 'bcc'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.bcc.label'
                          propertyPath: 'options.bcc'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                    55:
                      identifier: 'MailToReceiverFinisher'
                      editors:
                        __inheritances:
                          10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
                        100:
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdminOld.label'
                        120:
                          identifier: 'template'
                          templateName: 'Inspector-TextEditor'
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.template.label'
                          propertyPath: 'options.template'
                        130:
                          identifier: 'mailTo'
                          templateName: 'Inspector-TextEditor'
292
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailTo.label'
293
                          propertyPath: 'options.mailTo'
294
295
296
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
297
                        140:
298
299
                          identifier: 'mailFrom'
                          templateName: 'Inspector-TextEditor'
300
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailFrom.label'
301
                          propertyPath: 'options.mailFrom'
302
303
304
305
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
                        150:
306
                          identifier: 'mailFromName'
307
                          templateName: 'Inspector-TextEditor'
308
309
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailFromName.label'
                          propertyPath: 'options.mailFromName'
310
311
312
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
313
                        160:
314
315
                          identifier: 'replyTo'
                          templateName: 'Inspector-TextEditor'
316
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.replyTo.label'
317
                          propertyPath: 'options.replyTo'
318
319
320
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
321
                        180:
322
323
                          identifier: 'cc'
                          templateName: 'Inspector-TextEditor'
324
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.cc.label'
325
                          propertyPath: 'options.cc'
326
327
328
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
329
                        190:
330
331
                          identifier: 'bcc'
                          templateName: 'Inspector-TextEditor'
332
                          label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.bcc.label'
333
                          propertyPath: 'options.bcc'
334
335
336
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'FormElementIdentifierWithinCurlyBracesInclusive'
337
338
339
              renderingOptions:
                translation:
                  translationFile:
340
                    90: 'EXT:project_theme/Resources/Private/Language/forms.xlf'
341
342
                  translationFiles:
                    90: 'EXT:project_theme/Resources/Private/Language/forms.xlf'