79538ca1394523a29e67fff7cf1ca7566ccb86e1
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Configuration / TypoScript / setup.txt
1 # Replace rendering of old mailform
2
3 tt_content.mailform >
4 tt_content.mailform = COA
5 tt_content.mailform.10 = < lib.stdheader
6 tt_content.mailform.20 = FORM
7 tt_content.mailform.20 {
8 stdWrap.wrap = <div class="csc-mailform"> | </div>
9 stdWrap {
10 editIcons = tt_content: bodytext
11 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xlf:eIcon.form
12
13 prefixComment = 2 | Mail form inserted:
14 }
15 }
16
17 lib.tx_form.html.universalAttributes {
18 10 = id
19 20 = class
20 30 = accesskey
21 40 = contenteditable
22 50 = contextmenu
23 60 = dir
24 70 = draggable
25 80 = dropzone
26 90 = hidden
27 100 = lang
28 110 = spellcheck
29 120 = style
30 130 = tabindex
31 140 = title
32 150 = data-*
33 }
34
35 lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractTagBasedViewHelper {
36 10 = class
37 20 = dir
38 30 = id
39 40 = lang
40 50 = style
41 60 = title
42 70 = accesskey
43 80 = tabindex
44 90 = onclick
45 }
46
47 lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractTagBasedViewHelper
48 lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper {
49 150 = name
50 160 = value
51 }
52
53 lib.tx_form.registeredElements.defaultModelDescription {
54 # compatibilityMode
55 # Used by: frontend
56 # Overwriteable by user: TRUE
57 #
58 # If set to 1 tx_form acts almost like before.
59 # The following things dont work if compatibilityMode = 0:
60 # This settings can be overwritten in the FORM object
61 # toDo: more description
62 compatibilityMode = 1
63
64 # themeName
65 # Used by: frontend, wizard (not implemented at this time)
66 # Overwriteable by user: TRUE
67 #
68 # The theme name for the templating.
69 # At this time there are 2 themes.
70 # Default: a template that looks similar to the previous form extension.
71 # Compatibility: This template try to imitate the old form behavior.
72 # If a compatibilityMode = 1 and a layout.xxx is set in the user definded
73 # typoscript, the theme name switch automatically to the Compatibility theme
74 #
75 # This settings can be overwritten in the FORM object
76 # This settings can be overwritten in the FORM object
77 # toDo: more description
78 themeName = Default
79
80 # htmlAttributes
81 # Used by: frontend, wizard (not implemented at this time)
82 # Overwriteable by user: FALSE
83 #
84 # The allowed html attributes for this element, based on selfhtml
85 # documentation version 8.1.2 http://wiki.selfhtml.org/wiki/Referenz:HTML/
86 # We need this to dedect and map this strings in the user configured element definition as html attributes
87 # There is a special magic
88 # If you define prefix-*. That registers every attribute (that follow this synthax)
89 # that is found in the user configured element automaicly as a html attribute.
90 # prefix-xyz found in the user configured element is automaticly set as a
91 # html attribute.
92 htmlAttributes =< lib.tx_form.html.universalAttributes
93
94 # defaultHtmlAttributeValues
95 # Used by: frontend, wizard (not implemented at this time)
96 # Overwriteable by user: FALSE
97 #
98 # This values are set if there is no entry in the user configured element
99 defaultHtmlAttributeValues =
100
101 # fixedHtmlAttributeValues
102 # Used by: frontend, wizard (not implemented at this time)
103 # Overwriteable by user: FALSE
104 #
105 # This attributes are automaticly set to this values
106 fixedHtmlAttributeValues =
107
108 # htmlAttributesUsedByTheViewHelperDirectly
109 # Used by: frontend
110 # Overwriteable by user: FALSE
111 #
112 # Each html attribute defined at "htmlAttributes" is available
113 # in the model as a array.
114 # This array will be added directly to the resulting HTML tag.
115 # For this purpose the Argument "additionalAttributes" from the
116 # ViewHelper is used.
117 # But some html attributes has to be assigned as an argument to the viewhelper.
118 # The htmlAttributesUsedByTheViewHelperDirectly map is used
119 # to remove the specified html attribute from the "htmlAttributes" array
120 # and put this into the models "additionalArguments" array
121 # There are two attributes which special behavior:
122 # disabled and redonly can be assigned to the most viewhelpers,
123 # but whenever a disabled-tag appears, the browser will disable the element
124 # no matter of the value.
125 # See: https://forge.typo3.org/issues/42474
126 # So we hold it in the htmlAttributes array and the code remove this attribute
127 # if its value is set to 0
128 htmlAttributesUsedByTheViewHelperDirectly =
129
130 # name
131 # Used by: frontend, wizard (not implemented at this time)
132 # Overwriteable by user: TRUE
133 #
134 # This is the name of the element
135 # If the name is not defined it is automatically generated
136 # using the following syntax: id-{element_counter}
137 # The name attribute will be transformed if it contains some
138 # non allowed characters:
139 # - spaces are changed into hyphens
140 # - remove all characters except a-z A-Z 0-9 _ -
141 name =
142
143 # id
144 # Used by: frontend, wizard (not implemented at this time)
145 # Overwriteable by user: TRUE
146 #
147 # This is the id of the element
148 # If the id is not defined it is automatically generated
149 # using the following syntax: field-{element_counter}
150 # The id attribute will be transformed if it contains some
151 # non allowed characters:
152 # - spaces are changed into hyphens
153 # - if the id start with a integer then transform it to field-{integer}
154 # - remove all characters expect a-z A-Z 0-9 _ - : .
155 id =
156
157 # partialPath
158 # Used by: frontend, wizard (not implemented at this time)
159 # Overwriteable by user: TRUE
160 #
161 # This partial is used to render the element
162 # The partial paths to the element are build by the following rule
163 # {$plugin.tx_form.view.partialRootPath}/{$themeName}/@actionName/{$partialPath}
164 partialPath =
165
166 # viewHelperDefaulArguments
167 # Used by: frontend
168 # Overwriteable by user: FALSE
169 #
170 # This helper array is used to cast some values needed by the
171 # viewhelpers. E.g the f:form viewhelper need a array for the
172 # argument "additionalParams". If additionalParams are not defined
173 # in the users form typoscript, this results in a NULL value in the
174 # templating variable "{model.additionalArguments.additionalParams}"
175 # and this throws an error. The most of the viewhelper arguments
176 # are strings and/or can handle such NULL values, but there are some
177 # viewhelpers where we need some typecasting.
178 viewHelperDefaulArguments =
179
180 # childrenInheritName
181 # Used by: frontend
182 # Overwriteable by user: FALSE
183 #
184 # If set to 1 all child elements inerhit the name of
185 # the parent element
186 #
187 # toDo: description
188 childrenInheritName = 0
189
190 # visibleInShowAction
191 # Used by: frontend
192 # Overwriteable by user: TRUE
193 #
194 # If set to 1 this Element is displayed in the formular
195 #
196 # toDo: description
197 visibleInShowAction = 1
198
199 # visibleInConfirmationAction
200 # Used by: frontend
201 # Overwriteable by user: TRUE
202 #
203 # If set to 1 this Element is displayed in the confirmation page
204 #
205 # toDo: description
206 visibleInConfirmationAction = 1
207
208 # visibleInProcessAction
209 # Used by: frontend
210 # Overwriteable by user: TRUE
211 #
212 # If set to 1 this Element is displayed in the mail
213 #
214 # toDo: description
215 visibleInMail = 1
216 }
217
218 plugin.tx_form {
219 view {
220 templateRootPaths {
221 10 = {$plugin.tx_form.view.templateRootPath}
222 }
223 partialRootPaths {
224 10 = {$plugin.tx_form.view.partialRootPath}
225 }
226 layoutRootPaths {
227 10 = {$plugin.tx_form.view.layoutRootPath}
228 }
229
230 # elementPartials
231 # Used by: frontend, wizard (not implemented at this time)
232 # Overwriteable by user: FALSE
233 #
234 # This is the template selection array for the wizard
235 # This items are shown for the element
236 # If there is no partialPath property in the user configured element
237 # than elementPartials.ELEMENTNAME.10.partialPath is the default
238 elementPartials {
239 BUTTON {
240 10 {
241 displayName = Default
242 partialPath = FlatElements/Button
243 }
244 }
245 BUTTONTAG {
246 10 {
247 displayName = Default
248 partialPath = FlatElements/ButtonTag
249 }
250 }
251 CHECKBOX {
252 10 {
253 displayName = Default
254 partialPath = FlatElements/Checkbox
255 }
256 }
257 FILEUPLOAD {
258 10 {
259 displayName = Default
260 partialPath = FlatElements/Upload
261 }
262 }
263 FORM {
264 10 {
265 displayName = Default
266 partialPath = ContainerElements/Form
267 }
268 }
269 HIDDEN {
270 10 {
271 displayName = Default
272 partialPath = FlatElements/Hidden
273 }
274 }
275 INPUT {
276 10 {
277 displayName = Default
278 partialPath = FlatElements/Input
279 }
280 }
281 INPUTTYPEBUTTON {
282 10 {
283 displayName = Default
284 partialPath = FlatElements/InputTypeButton
285 }
286 }
287 IMAGEBUTTON {
288 10 {
289 displayName = Default
290 partialPath = FlatElements/Imagebutton
291 }
292 }
293 PASSWORD {
294 10 {
295 displayName = Default
296 partialPath = FlatElements/Password
297 }
298 }
299 RADIO {
300 10 {
301 displayName = Default
302 partialPath = FlatElements/Radio
303 }
304 }
305 RESET {
306 10 {
307 displayName = Default
308 partialPath = FlatElements/Reset
309 }
310 }
311 SELECT {
312 10 {
313 displayName = Default
314 partialPath = FlatElements/Select
315 }
316 }
317 SUBMIT {
318 10 {
319 displayName = Default
320 partialPath = FlatElements/Submit
321 }
322 }
323 TEXTLINE {
324 10 {
325 displayName = Default
326 partialPath = FlatElements/Textfield
327 }
328 }
329 FIELDSET {
330 10 {
331 displayName = Default
332 partialPath = ContainerElements/Fieldset
333 }
334 }
335 RADIOGROUP {
336 10 {
337 displayName = Default
338 partialPath = ContainerElements/Radiogroup
339 }
340 }
341 CHECKBOXGROUP {
342 10 {
343 displayName = Default
344 partialPath = ContainerElements/Checkboxgroup
345 }
346 }
347 HEADER {
348 10 {
349 displayName = Default
350 partialPath = FlatElements/Header
351 }
352 }
353 TEXTAREA {
354 10 {
355 displayName = Default
356 partialPath = FlatElements/Textarea
357 }
358 }
359 TEXTBLOCK {
360 10 {
361 displayName = Default
362 partialPath = FlatElements/Textblock
363 }
364 }
365
366 # special definitions for internal usage
367 LABEL {
368 10 {
369 displayName = Default
370 partialPath = AdditionalElements/Label
371 }
372 }
373 # useless for the wizard but needed for the frontend
374 CONTENTELEMENT {
375 10 {
376 displayName = Default
377 partialPath = FlatElements/ContentElement
378 }
379 }
380 }
381 }
382
383 settings {
384 # registeredValidators
385 # Used by: frontend, wizard (not implemented at this time)
386 # Overwriteable by user: FALSE
387 #
388 # This array hold all possible validators
389 # displayName is planned for the wizard (not implemented at this time)
390 registeredValidators {
391 alphabetic {
392 displayName = Alphabetic
393 className = TYPO3\CMS\Form\Domain\Validator\AlphabeticValidator
394 }
395 alphanumeric {
396 displayName = Alphanumeric
397 className = TYPO3\CMS\Form\Domain\Validator\AlphanumericValidator
398 }
399 between {
400 displayName = Between
401 className = TYPO3\CMS\Form\Domain\Validator\BetweenValidator
402 }
403 date {
404 displayName = Date
405 className = TYPO3\CMS\Form\Domain\Validator\DateValidator
406 }
407 digit {
408 displayName = Digit
409 className = TYPO3\CMS\Form\Domain\Validator\DigitValidator
410 }
411 email {
412 displayName = Email address
413 className = TYPO3\CMS\Form\Domain\Validator\EmailValidator
414 }
415 equals {
416 displayName = Equals
417 className = TYPO3\CMS\Form\Domain\Validator\EqualsValidator
418 }
419 fileallowedtypes {
420 displayName = Allowed mimetypes for file
421 className = TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator
422 }
423 filemaximumsize {
424 displayName = Maximum size for file (bytes)
425 className = TYPO3\CMS\Form\Domain\Validator\FileMaximumSizeValidator
426 }
427 fileminimumsize {
428 displayName = Minimum size for file (bytes)
429 className = TYPO3\CMS\Form\Domain\Validator\FileMinimumSizeValidator
430 }
431 float {
432 displayName = Float
433 className = TYPO3\CMS\Form\Domain\Validator\FloatValidator
434 }
435 greaterthan {
436 displayName = Greater than
437 className = TYPO3\CMS\Form\Domain\Validator\GreaterThanValidator
438 }
439 inarray {
440 displayName = In array
441 className = TYPO3\CMS\Form\Domain\Validator\InArrayValidator
442 }
443 integer {
444 displayName = Integer
445 className = TYPO3\CMS\Form\Domain\Validator\IntegerValidator
446 }
447 ip {
448 displayName = Ip address
449 className = TYPO3\CMS\Form\Domain\Validator\IpValidator
450 }
451 length {
452 displayName = Length
453 className = TYPO3\CMS\Form\Domain\Validator\LengthValidator
454 }
455 lessthan {
456 displayName = Less than
457 className = TYPO3\CMS\Form\Domain\Validator\LessThanValidator
458 }
459 regexp {
460 displayName = Regular Expression
461 className = TYPO3\CMS\Form\Domain\Validator\RegExpValidator
462 }
463 required {
464 displayName = Required
465 className = TYPO3\CMS\Form\Domain\Validator\RequiredValidator
466 }
467 uri {
468 displayName = Uniform Resource Identifier
469 className = TYPO3\CMS\Form\Domain\Validator\UriValidator
470 }
471 }
472
473 # registeredFilters
474 # Used by: frontend, wizard (not implemented at this time)
475 # Overwriteable by user: FALSE
476 #
477 # This array hold all possible filters
478 # displayName is planned for the wizard (not implemented at this time)
479 registeredFilters {
480 alphabetic {
481 displayName = Alphabetic
482 className = TYPO3\CMS\Form\Domain\Filter\AlphabeticFilter
483 }
484 alphanumeric {
485 displayName = Alphanumeric
486 className = TYPO3\CMS\Form\Domain\Filter\AlphanumericFilter
487 }
488 currency {
489 displayName = Currency
490 className = TYPO3\CMS\Form\Domain\Filter\CurrencyFilter
491 }
492 digit {
493 displayName = Digit
494 className = TYPO3\CMS\Form\Domain\Filter\DigitFilter
495 }
496 integer {
497 displayName = Integer
498 className = TYPO3\CMS\Form\Domain\Filter\IntegerFilter
499 }
500 lowercase {
501 displayName = Lowercase
502 className = TYPO3\CMS\Form\Domain\Filter\LowerCaseFilter
503 }
504 regexp {
505 displayName = Regular Expression
506 className = TYPO3\CMS\Form\Domain\Filter\RegExpFilter
507 }
508 removexss {
509 displayName = Remove XSS
510 className = TYPO3\CMS\Form\Domain\Filter\RemoveXssFilter
511 }
512 stripnewlines {
513 displayName = Strip New Lines
514 className = TYPO3\CMS\Form\Domain\Filter\StripNewLinesFilter
515 }
516 titlecase {
517 displayName = Titlecase
518 className = TYPO3\CMS\Form\Domain\Filter\TitleCaseFilter
519 }
520 trim {
521 displayName = Trim
522 className = TYPO3\CMS\Form\Domain\Filter\TrimFilter
523 }
524 uppercase {
525 displayName = Uppercase
526 className = TYPO3\CMS\Form\Domain\Filter\UpperCaseFilter
527 }
528 }
529
530 # the model definition
531 registeredElements {
532
533 # FORM
534 # Used by: frontend, wizard (not implemented at this time)
535 # Used viewhelper: f:form
536 #
537 # toDo: description
538 FORM =< lib.tx_form.registeredElements.defaultModelDescription
539 FORM {
540 htmlAttributes {
541 200 = action
542 210 = accept-charset
543 220 = autocomplete
544 230 = enctype
545 240 = method
546 250 = name
547 260 = novalidate
548 270 = target
549 }
550
551 defaultHtmlAttributeValues {
552 enctype = multipart/form-data
553 method = post
554 }
555
556 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractTagBasedViewHelper
557 htmlAttributesUsedByTheViewHelperDirectly {
558 # FormViewHelper
559 200 = enctype
560 210 = method
561 220 = name
562 230 = onreset
563 240 = onsubmit
564 }
565
566 viewHelperDefaulArguments {
567 arguments {
568 }
569 additionalParams {
570 }
571 argumentsToBeExcludedFromQueryString {
572 }
573 }
574
575 # FORM
576 # Used by: frontend, wizard (not implemented at this time)
577 # Overwriteable by user: TRUE
578 #
579 # There are two shipped themes
580 # Default and Compstibility
581 # The partial paths to the theme are build by the following rule
582 # {$plugin.tx_form.view.partialRootPath}/themeName/@actionName
583 themeName = Default
584 partialPath =< plugin.tx_form.view.elementPartials.FORM.10.partialPath
585
586 compatibilityMode = 1
587 }
588
589 # INPUT
590 # Used by: frontend, wizard (not implemented at this time)
591 # Used viewhelper: f:form.textfield
592 #
593 # toDo: description
594 INPUT =< lib.tx_form.registeredElements.defaultModelDescription
595 INPUT {
596 htmlAttributes {
597 200 = type
598 210 = accept
599 220 = autocomplete
600 230 = alt
601 240 = autofocus
602 250 = checked
603 260 = disabled
604 270 = height
605 280 = inputmode
606 290 = list
607 300 = max
608 310 = maxlength
609 320 = min
610 330 = minlength
611 340 = multiple
612 350 = name
613 360 = pattern
614 370 = placeholder
615 380 = readonly
616 390 = required
617 400 = size
618 410 = src
619 420 = step
620 430 = value
621 440 = width
622 }
623
624 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
625 htmlAttributesUsedByTheViewHelperDirectly {
626 # TextfieldViewHelper
627 200 = autofocus
628 210 = maxlength
629 220 = size
630 230 = placeholder
631 240 = pattern
632 250 = required
633 260 = type
634 }
635
636 partialPath =< plugin.tx_form.view.elementPartials.INPUT.10.partialPath
637 }
638
639 # CHECKBOX
640 # Used by: frontend, wizard (not implemented at this time)
641 # Used viewhelper: f:form.checkbox
642 #
643 # toDo: description
644 CHECKBOX =< lib.tx_form.registeredElements.defaultModelDescription
645 CHECKBOX {
646 htmlAttributes {
647 200 = type
648 210 = accept
649 220 = autocomplete
650 230 = alt
651 240 = autofocus
652 250 = checked
653 260 = disabled
654 270 = height
655 280 = inputmode
656 290 = list
657 300 = max
658 310 = maxlength
659 320 = min
660 330 = minlength
661 340 = multiple
662 350 = name
663 360 = pattern
664 370 = placeholder
665 380 = readonly
666 390 = required
667 400 = size
668 410 = src
669 420 = step
670 430 = value
671 440 = width
672 }
673
674 fixedHtmlAttributeValues {
675 type = checkbox
676 }
677
678 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
679 htmlAttributesUsedByTheViewHelperDirectly {
680 # CheckboxViewHelper
681 200 = checked
682 210 = multiple
683 }
684
685 partialPath =< plugin.tx_form.view.elementPartials.CHECKBOX.10.partialPath
686 }
687
688 # FILEUPLOAD
689 # Used by: frontend, wizard (not implemented at this time)
690 # Used viewhelper: f:form.upload
691 #
692 # toDo: description
693 FILEUPLOAD =< lib.tx_form.registeredElements.defaultModelDescription
694 FILEUPLOAD {
695 htmlAttributes {
696 200 = type
697 210 = accept
698 220 = autocomplete
699 230 = alt
700 240 = autofocus
701 250 = checked
702 260 = disabled
703 270 = height
704 280 = inputmode
705 290 = list
706 300 = max
707 310 = maxlength
708 320 = min
709 330 = minlength
710 340 = multiple
711 350 = name
712 360 = pattern
713 370 = placeholder
714 380 = readonly
715 390 = required
716 400 = size
717 410 = src
718 420 = step
719 430 = value
720 440 = width
721 }
722
723 fixedHtmlAttributeValues {
724 type = file
725 }
726
727 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
728 htmlAttributesUsedByTheViewHelperDirectly {
729 # UploadViewHelper
730 200 = multiple
731 }
732
733 partialPath =< plugin.tx_form.view.elementPartials.FILEUPLOAD.10.partialPath
734 }
735
736 # HIDDEN
737 # Used by: frontend, wizard (not implemented at this time)
738 # Used viewhelper: f:form.hidden
739 #
740 # toDo: description
741 HIDDEN =< lib.tx_form.registeredElements.defaultModelDescription
742 HIDDEN {
743 htmlAttributes {
744 200 = type
745 210 = accept
746 220 = autocomplete
747 230 = alt
748 240 = autofocus
749 250 = checked
750 260 = disabled
751 270 = height
752 280 = inputmode
753 290 = list
754 300 = max
755 310 = maxlength
756 320 = min
757 330 = minlength
758 340 = multiple
759 350 = name
760 360 = pattern
761 370 = placeholder
762 380 = readonly
763 390 = required
764 400 = size
765 410 = src
766 420 = step
767 430 = value
768 440 = width
769 }
770
771 fixedHtmlAttributeValues {
772 type = hidden
773 }
774
775 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
776
777 partialPath =< plugin.tx_form.view.elementPartials.HIDDEN.10.partialPath
778
779 visibleInConfirmationAction = 0
780 visibleInMail = 0
781 }
782
783 # IMAGEBUTTON
784 # Used by: frontend, wizard (not implemented at this time)
785 # Used viewhelper: f:form.textfield
786 # Deprecated
787 #
788 # toDo: description
789 IMAGEBUTTON =< lib.tx_form.registeredElements.defaultModelDescription
790 IMAGEBUTTON {
791 htmlAttributes {
792 200 = type
793 210 = accept
794 220 = autocomplete
795 230 = alt
796 240 = autofocus
797 250 = checked
798 260 = disabled
799 270 = height
800 280 = inputmode
801 290 = list
802 300 = max
803 310 = maxlength
804 320 = min
805 330 = minlength
806 340 = multiple
807 350 = name
808 360 = pattern
809 370 = placeholder
810 380 = readonly
811 390 = required
812 400 = size
813 410 = src
814 420 = step
815 430 = value
816 440 = width
817 }
818
819 fixedHtmlAttributeValues {
820 type = image
821 }
822
823 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
824 htmlAttributesUsedByTheViewHelperDirectly {
825 # TextfieldViewHelper
826 200 = autofocus
827 210 = maxlength
828 220 = size
829 230 = placeholder
830 240 = pattern
831 250 = required
832 260 = type
833 }
834
835 partialPath =< plugin.tx_form.view.elementPartials.IMAGEBUTTON.10.partialPath
836
837 visibleInConfirmationAction = 0
838 visibleInMail = 0
839 }
840
841 # PASSWORD
842 # Used by: frontend, wizard (not implemented at this time)
843 # Used viewhelper: f:form.password
844 #
845 # toDo: description
846 PASSWORD =< lib.tx_form.registeredElements.defaultModelDescription
847 PASSWORD {
848 htmlAttributes {
849 200 = type
850 210 = accept
851 220 = autocomplete
852 230 = alt
853 240 = autofocus
854 250 = checked
855 260 = disabled
856 270 = height
857 280 = inputmode
858 290 = list
859 300 = max
860 310 = maxlength
861 320 = min
862 330 = minlength
863 340 = multiple
864 350 = name
865 360 = pattern
866 370 = placeholder
867 380 = readonly
868 390 = required
869 400 = size
870 410 = src
871 420 = step
872 430 = value
873 440 = width
874 }
875
876 fixedHtmlAttributeValues {
877 type = password
878 }
879
880 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
881 htmlAttributesUsedByTheViewHelperDirectly {
882 # PasswordViewHelper
883 200 = maxlength
884 210 = size
885 }
886
887 partialPath =< plugin.tx_form.view.elementPartials.PASSWORD.10.partialPath
888
889 visibleInConfirmationAction = 0
890 visibleInMail = 0
891 }
892
893 # RADIO
894 # Used by: frontend, wizard (not implemented at this time)
895 # Used viewhelper: f:form.radio
896 #
897 # toDo: description
898 RADIO =< lib.tx_form.registeredElements.defaultModelDescription
899 RADIO {
900 htmlAttributes {
901 200 = type
902 210 = accept
903 220 = autocomplete
904 230 = alt
905 240 = autofocus
906 250 = checked
907 260 = disabled
908 270 = height
909 280 = inputmode
910 290 = list
911 300 = max
912 310 = maxlength
913 320 = min
914 330 = minlength
915 340 = multiple
916 350 = name
917 360 = pattern
918 370 = placeholder
919 380 = readonly
920 390 = required
921 400 = size
922 410 = src
923 420 = step
924 430 = value
925 440 = width
926 }
927
928 fixedHtmlAttributeValues {
929 type = radio
930 }
931
932 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
933 htmlAttributesUsedByTheViewHelperDirectly {
934 # RadioViewHelper
935 200 = checked
936 }
937
938 partialPath =< plugin.tx_form.view.elementPartials.RADIO.10.partialPath
939 }
940
941 # RESET
942 # Used by: frontend, wizard (not implemented at this time)
943 # Used viewhelper: f:form.textfield
944 #
945 # toDo: description
946 RESET =< lib.tx_form.registeredElements.defaultModelDescription
947 RESET {
948 htmlAttributes {
949 200 = type
950 210 = accept
951 220 = autocomplete
952 230 = alt
953 240 = autofocus
954 250 = checked
955 260 = disabled
956 270 = height
957 280 = inputmode
958 290 = list
959 300 = max
960 310 = maxlength
961 320 = min
962 330 = minlength
963 340 = multiple
964 350 = name
965 360 = pattern
966 370 = placeholder
967 380 = readonly
968 390 = required
969 400 = size
970 410 = src
971 420 = step
972 430 = value
973 440 = width
974 }
975
976 fixedHtmlAttributeValues {
977 type = reset
978 }
979
980 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
981 htmlAttributesUsedByTheViewHelperDirectly {
982 # TextfieldViewHelper
983 210 = autofocus
984 220 = maxlength
985 230 = size
986 240 = placeholder
987 250 = pattern
988 260 = required
989 270 = type
990 }
991
992 partialPath =< plugin.tx_form.view.elementPartials.RESET.10.partialPath
993
994 visibleInConfirmationAction = 0
995 visibleInMail = 0
996 }
997
998 # SUBMIT
999 # Used by: frontend, wizard (not implemented at this time)
1000 # Used viewhelper: f:form.submit
1001 #
1002 # toDo: description
1003 SUBMIT =< lib.tx_form.registeredElements.defaultModelDescription
1004 SUBMIT {
1005 htmlAttributes {
1006 200 = type
1007 210 = accept
1008 220 = autocomplete
1009 230 = alt
1010 240 = autofocus
1011 250 = checked
1012 260 = disabled
1013 270 = height
1014 280 = inputmode
1015 290 = list
1016 300 = max
1017 310 = maxlength
1018 320 = min
1019 330 = minlength
1020 340 = multiple
1021 350 = name
1022 360 = pattern
1023 370 = placeholder
1024 380 = readonly
1025 390 = required
1026 400 = size
1027 410 = src
1028 420 = step
1029 430 = value
1030 440 = width
1031 }
1032
1033 fixedHtmlAttributeValues {
1034 type = submit
1035 }
1036
1037 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
1038
1039 partialPath =< plugin.tx_form.view.elementPartials.SUBMIT.10.partialPath
1040
1041 visibleInConfirmationAction = 0
1042 visibleInMail = 0
1043 }
1044
1045 # TEXTLINE
1046 # Used by: frontend, wizard (not implemented at this time)
1047 # Used viewhelper: f:form.textfield
1048 #
1049 # toDo: description
1050 TEXTLINE =< lib.tx_form.registeredElements.defaultModelDescription
1051 TEXTLINE {
1052 htmlAttributes {
1053 200 = type
1054 210 = accept
1055 220 = autocomplete
1056 230 = alt
1057 240 = autofocus
1058 250 = checked
1059 260 = disabled
1060 270 = height
1061 280 = inputmode
1062 290 = list
1063 300 = max
1064 310 = maxlength
1065 320 = min
1066 330 = minlength
1067 340 = multiple
1068 350 = name
1069 360 = pattern
1070 370 = placeholder
1071 380 = readonly
1072 390 = required
1073 400 = size
1074 410 = src
1075 420 = step
1076 430 = value
1077 440 = width
1078 }
1079
1080 fixedHtmlAttributeValues {
1081 type = text
1082 }
1083
1084 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
1085 htmlAttributesUsedByTheViewHelperDirectly {
1086 # TextfieldViewHelper
1087 200 = autofocus
1088 210 = maxlength
1089 220 = size
1090 230 = placeholder
1091 240 = pattern
1092 250 = required
1093 260 = type
1094 }
1095
1096 partialPath =< plugin.tx_form.view.elementPartials.TEXTLINE.10.partialPath
1097 }
1098
1099 # TEXTAREA
1100 # Used by: frontend, wizard (not implemented at this time)
1101 # Used viewhelper: f:form.textarea
1102 #
1103 # toDo: description
1104 TEXTAREA =< lib.tx_form.registeredElements.defaultModelDescription
1105 TEXTAREA {
1106 htmlAttributes {
1107 200 = autocomplete
1108 210 = autofocus
1109 220 = cols
1110 230 = disabled
1111 240 = maxlength
1112 250 = minlength
1113 260 = name
1114 270 = placeholder
1115 280 = readonly
1116 290 = required
1117 300 = rows
1118 310 = selectionDirection
1119 320 = selectionEnd
1120 330 = selectionStart
1121 340 = wrap
1122 }
1123
1124 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
1125 htmlAttributesUsedByTheViewHelperDirectly {
1126 # TextareaViewHelper
1127 200 = autofocus
1128 210 = rows
1129 220 = cols
1130 230 = placeholder
1131 }
1132
1133 partialPath =< plugin.tx_form.view.elementPartials.TEXTAREA.10.partialPath
1134 }
1135
1136 # SELECT
1137 # Used by: frontend, wizard (not implemented at this time)
1138 # Used viewhelper: form:select (extends f:form.select)
1139 #
1140 # toDo: description
1141 SELECT =< lib.tx_form.registeredElements.defaultModelDescription
1142 SELECT {
1143 htmlAttributes {
1144 200 = autofocus
1145 210 = disabled
1146 220 = multiple
1147 230 = name
1148 240 = required
1149 250 = size
1150 }
1151
1152 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
1153 htmlAttributesUsedByTheViewHelperDirectly {
1154 # SelectViewHelper
1155 120 = multiple
1156 130 = size
1157 }
1158
1159 partialPath =< plugin.tx_form.view.elementPartials.SELECT.10.partialPath
1160 }
1161
1162 # OPTION
1163 # Used by: frontend, wizard (not implemented at this time)
1164 # Used viewhelper: form:select (extends f:form.select)
1165 #
1166 # We need this element to define select options via Typoscript
1167 # but the rendering is made with the select viewhelper.
1168 # That is the reason why we do not need a partialPath definition
1169 # toDo: description
1170 OPTION =< lib.tx_form.registeredElements.defaultModelDescription
1171 OPTION {
1172 htmlAttributes {
1173 200 = disabled
1174 210 = label
1175 220 = selected
1176 230 = value
1177 }
1178
1179 htmlAttributesUsedByTheViewHelperDirectly {
1180 10 = label
1181 20 = value
1182 }
1183 }
1184
1185 # OPTGROUP
1186 # Used by: frontend, wizard (not implemented at this time)
1187 # Used viewhelper: form:select (extends f:form.select)
1188 #
1189 # We need this element to define select options via Typoscript
1190 # but the rendering is made with the select viewhelper.
1191 # That is the reason why we do not need a partialPath definition
1192 # toDo: description
1193 OPTGROUP =< lib.tx_form.registeredElements.defaultModelDescription
1194 OPTGROUP {
1195 htmlAttributes {
1196 200 = disabled
1197 210 = label
1198 }
1199
1200 htmlAttributesUsedByTheViewHelperDirectly {
1201 10 = label
1202 }
1203 }
1204
1205 # BUTTONTAG
1206 # Used by: frontend, wizard (not implemented at this time)
1207 # Used viewhelper: f:form.button
1208 #
1209 # # Generates a element <button type="..." />
1210 BUTTONTAG =< lib.tx_form.registeredElements.defaultModelDescription
1211 BUTTONTAG {
1212 htmlAttributes {
1213 200 = autofocus
1214 210 = disabled
1215 220 = name
1216 230 = type
1217 240 = value
1218 }
1219
1220 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
1221 htmlAttributesUsedByTheViewHelperDirectly {
1222 # ButtonViewHelper
1223 120 = autofocus
1224 130 = type
1225 }
1226
1227 partialPath =< plugin.tx_form.view.elementPartials.BUTTONTAG.10.partialPath
1228
1229 visibleInConfirmationAction = 0
1230 visibleInMail = 0
1231 }
1232
1233 # INPUTTYPEBUTTON
1234 # Used by: frontend, wizard (not implemented at this time)
1235 # Used viewhelper: f:form.textfield
1236 #
1237 # Generates a element <input type="button" />
1238 INPUTTYPEBUTTON =< lib.tx_form.registeredElements.defaultModelDescription
1239 INPUTTYPEBUTTON {
1240 htmlAttributes {
1241 200 = type
1242 210 = accept
1243 220 = autocomplete
1244 230 = alt
1245 240 = autofocus
1246 250 = checked
1247 260 = disabled
1248 270 = height
1249 280 = inputmode
1250 290 = list
1251 300 = max
1252 310 = maxlength
1253 320 = min
1254 330 = minlength
1255 340 = multiple
1256 350 = name
1257 360 = pattern
1258 370 = placeholder
1259 380 = readonly
1260 390 = required
1261 400 = size
1262 410 = src
1263 420 = step
1264 430 = value
1265 440 = width
1266 }
1267
1268 fixedHtmlAttributeValues {
1269 type = button
1270 }
1271
1272 htmlAttributesUsedByTheViewHelperDirectly =< lib.tx_form.htmlAttributesUsedByTheViewHelperDirectly.abstractFormFieldViewHelper
1273 htmlAttributesUsedByTheViewHelperDirectly {
1274 # TextfieldViewHelper
1275 200 = autofocus
1276 210 = maxlength
1277 220 = size
1278 230 = placeholder
1279 240 = pattern
1280 250 = required
1281 260 = type
1282 }
1283
1284 partialPath =< plugin.tx_form.view.elementPartials.INPUTTYPEBUTTON.10.partialPath
1285
1286 visibleInConfirmationAction = 0
1287 visibleInMail = 0
1288 }
1289
1290 # BUTTON
1291 # Used by: frontend, wizard (not implemented at this time)
1292 # Used viewhelper: f:form.button
1293 #
1294 # A historical element whch generates a <input type="button" />
1295 # To be compatible its a copy of the new element INPUTTYPEBUTTON
1296 # If you want to use a <button /> tag, you must write
1297 # BUTTON =< .BUTTONTAG or use the BUTTONTAG directly
1298 BUTTON =< .INPUTTYPEBUTTON
1299 BUTTON {
1300 partialPath =< plugin.tx_form.view.elementPartials.INPUTTYPEBUTTON.10.partialPath
1301 }
1302
1303 # FIELDSET
1304 # Used by: frontend, wizard (not implemented at this time)
1305 # Used viewhelper: none
1306 #
1307 # This is a container element
1308 # toDo: description
1309 FIELDSET =< lib.tx_form.registeredElements.defaultModelDescription
1310 FIELDSET {
1311 htmlAttributes {
1312 200 = disabled
1313 210 = name
1314 }
1315
1316 partialPath =< plugin.tx_form.view.elementPartials.FIELDSET.10.partialPath
1317
1318 visibleInConfirmationAction = 0
1319 visibleInMail = 0
1320 }
1321
1322 # CHECKBOXGROUP
1323 # Used by: frontend, wizard (not implemented at this time)
1324 # Used viewhelper: none
1325 #
1326 # This is a container element
1327 # toDo: description
1328 CHECKBOXGROUP =< .FIELDSET
1329 CHECKBOXGROUP {
1330 partialPath =< plugin.tx_form.view.elementPartials.CHECKBOXGROUP.10.partialPath
1331
1332 childrenInheritName = 1
1333
1334 visibleInConfirmationAction = 1
1335 visibleInMail = 1
1336 }
1337
1338 # RADIOGROUP
1339 # Used by: frontend, wizard (not implemented at this time)
1340 # Used viewhelper: none
1341 #
1342 # This is a container element
1343 # toDo: description
1344 RADIOGROUP =< .FIELDSET
1345 RADIOGROUP {
1346 partialPath =< plugin.tx_form.view.elementPartials.RADIOGROUP.10.partialPath
1347
1348 childrenInheritName = 1
1349
1350 visibleInConfirmationAction = 1
1351 visibleInMail = 1
1352 }
1353
1354 # HEADER
1355 # Used by: frontend, wizard (not implemented at this time)
1356 # Used viewhelper: f:format.raw
1357 #
1358 # toDo: description
1359 HEADER =< lib.tx_form.registeredElements.defaultModelDescription
1360 HEADER {
1361 partialPath =< plugin.tx_form.view.elementPartials.HEADER.10.partialPath
1362
1363 visibleInConfirmationAction = 0
1364 visibleInMail = 0
1365 }
1366
1367 # TEXTBLOCK
1368 # Used by: frontend, wizard (not implemented at this time)
1369 # Used viewhelper: f:format.raw
1370 #
1371 # toDo: description
1372 TEXTBLOCK =< lib.tx_form.registeredElements.defaultModelDescription
1373 TEXTBLOCK {
1374 htmlAttributes >
1375 partialPath =< plugin.tx_form.view.elementPartials.TEXTBLOCK.10.partialPath
1376
1377 visibleInConfirmationAction = 0
1378 visibleInMail = 0
1379 }
1380
1381 # CONTENTELEMENT
1382 # Used by: frontend
1383 # Used viewhelper: none
1384 #
1385 # This is an internal element but some thing should be configurable
1386 # like the visibility and the used partial path.
1387 #
1388 # toDo: description
1389 CONTENTELEMENT =< lib.tx_form.registeredElements.defaultModelDescription
1390 CONTENTELEMENT {
1391 partialPath =< plugin.tx_form.view.elementPartials.CONTENTELEMENT.10.partialPath
1392
1393 visibleInConfirmationAction = 0
1394 visibleInMail = 0
1395 }
1396 }
1397 }
1398 }