[TASK] Ext:form - Add update option to saveToDatabase finisher
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Configuration / Yaml / BaseSetup.yaml
1 TYPO3:
2 CMS:
3 Form:
4 persistenceManager:
5 allowedFileMounts:
6 10: 1:/user_upload/
7 allowSaveToExtensionPaths: false
8 allowDeleteFromExtensionPaths: false
9 #allowedExtensionPaths:
10 #10: EXT:example/Resources/Private/Forms/
11
12 prototypes:
13 standard:
14
15 ########### DEFAULT FORM ELEMENT DEFINITIONS ###########
16 formElementsDefinition:
17
18 ### BASE ELEMENTS ###
19 Form:
20 __inheritances:
21 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
22 rendererClassName: 'TYPO3\CMS\Form\Domain\Renderer\FluidFormRenderer'
23 renderingOptions:
24 renderableNameInTemplate: 'form'
25 honeypot:
26 enable: true
27 formElementToUse: 'Honeypot'
28
29 ### FORM ELEMENTS: CONTAINER ###
30 Page:
31 __inheritances:
32 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
33 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\Page'
34 renderingOptions:
35 renderableNameInTemplate: 'page'
36
37 SummaryPage:
38 __inheritances:
39 10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Page'
40
41 Fieldset:
42 __inheritances:
43 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
44 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\Section'
45 renderingOptions:
46 renderableNameInTemplate: 'section'
47
48 ### FORM ELEMENTS: INPUT ###
49 Text:
50 __inheritances:
51 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
52
53 Password:
54 __inheritances:
55 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
56
57 AdvancedPassword:
58 __inheritances:
59 10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Password'
60 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\AdvancedPassword'
61 properties:
62 elementClassAttribute: 'input-medium'
63 confirmationLabel: ''
64 # Optional description (hint) for the first password input element
65 #passwordDescription: ''
66 confirmationClassAttribute: 'input-medium'
67
68 Textarea:
69 __inheritances:
70 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
71 properties:
72 elementClassAttribute: 'xxlarge'
73
74 Honeypot:
75 __inheritances:
76 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
77 properties:
78 renderAsHiddenField: false
79 styleAttribute: 'position:absolute; margin:0 0 0 -999em;'
80
81 ### FORM ELEMENTS: SELECT ###
82 Checkbox:
83 __inheritances:
84 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
85 properties:
86 elementClassAttribute: 'add-on'
87 value: 1
88
89 MultiCheckbox:
90 __inheritances:
91 10: 'TYPO3.CMS.Form.mixins.formElementMixins.MultiSelectionMixin'
92
93 MultiSelect:
94 __inheritances:
95 10: 'TYPO3.CMS.Form.mixins.formElementMixins.MultiSelectionMixin'
96 properties:
97 elementClassAttribute: 'xlarge'
98
99 RadioButton:
100 __inheritances:
101 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SingleSelectionMixin'
102 properties:
103 elementClassAttribute: 'xlarge'
104
105 SingleSelect:
106 __inheritances:
107 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SingleSelectionMixin'
108
109 ### FORM ELEMENTS: CUSTOM ###
110 DatePicker:
111 __inheritances:
112 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
113 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\DatePicker'
114 properties:
115 elementClassAttribute: 'small'
116 timeSelectorClassAttribute: 'mini'
117 dateFormat: 'Y-m-d'
118 enableDatePicker: true
119 displayTimeSelector: false
120
121 StaticText:
122 __inheritances:
123 10: 'TYPO3.CMS.Form.mixins.formElementMixins.ReadOnlyFormElementMixin'
124 properties:
125 text: ''
126
127 Hidden:
128 __inheritances:
129 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
130
131 ContentElement:
132 __inheritances:
133 10: 'TYPO3.CMS.Form.mixins.formElementMixins.ReadOnlyFormElementMixin'
134 properties:
135 contentElementUid: ''
136
137 ### FORM ELEMENTS: UPLOADS ###
138 FileUpload:
139 __inheritances:
140 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FileUploadMixin'
141 properties:
142 allowedMimeTypes: ['application/doc', 'application/docx', 'application/odt', 'application/pdf']
143
144 ImageUpload:
145 __inheritances:
146 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FileUploadMixin'
147 properties:
148 allowedMimeTypes: ['image/jpeg', 'image/png', 'image/bmp']
149 elementClassAttribute: 'lightbox'
150 imageLinkMaxWidth: 500
151 imageMaxWidth: 500
152 imageMaxHeight: 500
153
154 ### FINISHERS ###
155
156 finishersDefinition:
157 Closure:
158 __inheritances:
159 10: 'TYPO3.CMS.Form.mixins.finishersTranslationSettingsMixin'
160 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\ClosureFinisher'
161 options:
162 #closure:
163
164 Confirmation:
165 __inheritances:
166 10: 'TYPO3.CMS.Form.mixins.finishersTranslationSettingsMixin'
167 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\ConfirmationFinisher'
168 #options:
169 #message: ''
170
171 EmailToSender:
172 __inheritances:
173 10: 'TYPO3.CMS.Form.mixins.finishersEmailMixin'
174
175 EmailToReceiver:
176 __inheritances:
177 10: 'TYPO3.CMS.Form.mixins.finishersEmailMixin'
178
179 DeleteUploads:
180 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\DeleteUploadsFinisher'
181
182 FlashMessage:
183 __inheritances:
184 10: 'TYPO3.CMS.Form.mixins.finishersTranslationSettingsMixin'
185 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\FlashMessageFinisher'
186 #options:
187 #messageBody: ''
188 #messageTitle: ''
189 #messageArguments: {}
190 #messageCode: 0
191 #severity: 0
192
193 Redirect:
194 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\RedirectFinisher'
195 #options:
196 #pageUid: 1
197 #additionalParameters: ''
198 #delay: 0
199 #statusCode: 303
200
201 SaveToDatabase:
202 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\SaveToDatabaseFinisher'
203 #options:
204 #table: ''
205 #mode: 'insert'
206 #whereClause: []
207 #elements:
208 # <elementIdentifier>:
209 # mapOnDatabaseColumn: sender_name
210 # saveFileIdentifierInsteadOfUid: false
211 # skipIfValueIsNull: false
212
213 ### VALIDATORS ###
214 validatorsDefinition:
215 NotEmpty:
216 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\NotEmptyValidator'
217 DateTime:
218 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\DateTimeValidator'
219 Alphanumeric:
220 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\AlphanumericValidator'
221 Text:
222 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\TextValidator'
223 StringLength:
224 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\StringLengthValidator'
225 #options:
226 #minimum: 0
227 #maximum: 0
228 EmailAddress:
229 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\EmailAddressValidator'
230 Integer:
231 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\IntegerValidator'
232 Float:
233 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\FloatValidator'
234 NumberRange:
235 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\NumberRangeValidator'
236 #options:
237 #minimum: 0
238 #maximum: 0
239 RegularExpression:
240 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\RegularExpressionValidator'
241 #options:
242 #regularExpression: '/^.*$/'
243 Count:
244 implementationClassName: 'TYPO3\CMS\Form\Mvc\Validation\CountValidator'
245 #options:
246 #minimum: 0
247 #maximum: 0
248
249 ########### MIXINS ###########
250 mixins:
251 translationSettingsMixin:
252 translation:
253 translationFile: 'EXT:form/Resources/Private/Language/locallang.xlf'
254 translatePropertyValueIfEmpty: true
255
256 finishersTranslationSettingsMixin:
257 options:
258 __inheritances:
259 10: 'TYPO3.CMS.Form.mixins.translationSettingsMixin'
260
261 ########### FORM ELEMENT MIXINS ###########
262 formElementMixins:
263 BaseFormElementMixin:
264 renderingOptions:
265 __inheritances:
266 10: 'TYPO3.CMS.Form.mixins.translationSettingsMixin'
267
268 templateRootPaths:
269 10: 'EXT:form/Resources/Private/Frontend/Templates/FormElements/'
270 partialRootPaths:
271 10: 'EXT:form/Resources/Private/Frontend/Partials/FormElements/'
272 layoutRootPaths:
273 10: 'EXT:form/Resources/Private/Frontend/Layouts/FormElements/'
274
275 # It is possible to set a full path to a template e.g. for custom elements
276 # In this case 'templateRootPaths' will be ignored
277 # templatePathAndFilename: 'EXT:form/Resources/Private/Frontend/Templates/FormElements/RadioButton.html'
278
279 # set this to TRUE if you want to avoid exceptions for FormElements without definitions
280 skipUnknownElements: true
281
282 ReadOnlyFormElementMixin:
283 __inheritances:
284 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
285 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement'
286 renderingOptions:
287 renderableNameInTemplate: 'element'
288
289 FormElementMixin:
290 __inheritances:
291 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
292 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement'
293 properties:
294 containerClassAttribute: 'input'
295 elementClassAttribute: ''
296 elementErrorClassAttribute: 'error'
297 renderingOptions:
298 renderableNameInTemplate: 'element'
299
300 TextMixin:
301 __inheritances:
302 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
303
304 SelectionMixin:
305 __inheritances:
306 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
307
308 SingleSelectionMixin:
309 __inheritances:
310 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SelectionMixin'
311
312 MultiSelectionMixin:
313 __inheritances:
314 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SelectionMixin'
315
316 FileUploadMixin:
317 __inheritances:
318 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
319 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\FileUpload'
320 properties:
321 saveToFileMount: '1:/user_upload/'
322
323 finishersEmailMixin:
324 __inheritances:
325 10: 'TYPO3.CMS.Form.mixins.finishersTranslationSettingsMixin'
326 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\EmailFinisher'
327 options:
328 #subject: ''
329 #recipientAddress: ''
330 #recipientName: ''
331 #senderAddress:
332 #senderName: ''
333 #replyToAddress: ''
334 #carbonCopyAddress: ''
335 #blindCarbonCopyAddress: ''
336 #format: 'html'
337 #attachUploads: true
338 #translation:
339 # language: 'default'
340 # {@format} depends the 'format' value
341 templatePathAndFilename: 'EXT:form/Resources/Private/Frontend/Templates/Finishers/Email/{@format}.html'
342 #partialRootPaths: []
343 #layoutRootPaths: []
344 #variables: {}