31733d143b23fea6ca3680fcd0571f5189b9e63d
[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 #elements:
206 # <elementIdentifier>:
207 # mapOnDatabaseColumn: sender_name
208 # saveFileIdentifierInsteadOfUid: 'false'
209
210 ### VALIDATORS ###
211 validatorsDefinition:
212 NotEmpty:
213 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\NotEmptyValidator'
214 DateTime:
215 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\DateTimeValidator'
216 Alphanumeric:
217 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\AlphanumericValidator'
218 Text:
219 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\TextValidator'
220 StringLength:
221 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\StringLengthValidator'
222 #options:
223 #minimum: 0
224 #maximum: 0
225 EmailAddress:
226 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\EmailAddressValidator'
227 Integer:
228 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\IntegerValidator'
229 Float:
230 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\FloatValidator'
231 NumberRange:
232 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\NumberRangeValidator'
233 #options:
234 #minimum: 0
235 #maximum: 0
236 RegularExpression:
237 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\RegularExpressionValidator'
238 #options:
239 #regularExpression: '/^.*$/'
240 Count:
241 implementationClassName: 'TYPO3\CMS\Form\Mvc\Validation\CountValidator'
242 #options:
243 #minimum: 0
244 #maximum: 0
245
246 ########### MIXINS ###########
247 mixins:
248 translationSettingsMixin:
249 translation:
250 translationFile: 'EXT:form/Resources/Private/Language/locallang.xlf'
251 translatePropertyValueIfEmpty: true
252
253 finishersTranslationSettingsMixin:
254 options:
255 __inheritances:
256 10: 'TYPO3.CMS.Form.mixins.translationSettingsMixin'
257
258 ########### FORM ELEMENT MIXINS ###########
259 formElementMixins:
260 BaseFormElementMixin:
261 renderingOptions:
262 __inheritances:
263 10: 'TYPO3.CMS.Form.mixins.translationSettingsMixin'
264
265 templateRootPaths:
266 10: 'EXT:form/Resources/Private/Frontend/Templates/FormElements/'
267 partialRootPaths:
268 10: 'EXT:form/Resources/Private/Frontend/Partials/FormElements/'
269 layoutRootPaths:
270 10: 'EXT:form/Resources/Private/Frontend/Layouts/FormElements/'
271
272 # It is possible to set a full path to a template e.g. for custom elements
273 # In this case 'templateRootPaths' will be ignored
274 # templatePathAndFilename: 'EXT:form/Resources/Private/Frontend/Templates/FormElements/RadioButton.html'
275
276 # set this to TRUE if you want to avoid exceptions for FormElements without definitions
277 skipUnknownElements: true
278
279 ReadOnlyFormElementMixin:
280 __inheritances:
281 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
282 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement'
283 renderingOptions:
284 renderableNameInTemplate: 'element'
285
286 FormElementMixin:
287 __inheritances:
288 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
289 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement'
290 properties:
291 containerClassAttribute: 'input'
292 elementClassAttribute: ''
293 elementErrorClassAttribute: 'error'
294 renderingOptions:
295 renderableNameInTemplate: 'element'
296
297 TextMixin:
298 __inheritances:
299 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
300
301 SelectionMixin:
302 __inheritances:
303 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
304
305 SingleSelectionMixin:
306 __inheritances:
307 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SelectionMixin'
308
309 MultiSelectionMixin:
310 __inheritances:
311 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SelectionMixin'
312
313 FileUploadMixin:
314 __inheritances:
315 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
316 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\FileUpload'
317 properties:
318 saveToFileMount: '1:/user_upload/'
319
320 finishersEmailMixin:
321 __inheritances:
322 10: 'TYPO3.CMS.Form.mixins.finishersTranslationSettingsMixin'
323 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\EmailFinisher'
324 options:
325 #subject: ''
326 #recipientAddress: ''
327 #recipientName: ''
328 #senderAddress:
329 #senderName: ''
330 #replyToAddress: ''
331 #carbonCopyAddress: ''
332 #blindCarbonCopyAddress: ''
333 #format: 'html'
334 #attachUploads: true
335 #translation:
336 # language: 'default'
337 # {@format} depends the 'format' value
338 templatePathAndFilename: 'EXT:form/Resources/Private/Frontend/Templates/Finishers/Email/{@format}.html'
339 #partialRootPaths: []
340 #layoutRootPaths: []
341 #variables: {}