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