[BUGFIX] EXT:form - handling of missing type attribute
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Configuration / TypoScript / Elements / Textline.ts
1 plugin.tx_form {
2 # elementPartials
3 # Used by: frontend, wizard (not implemented right now)
4 # Overwritable by user: FALSE
5 #
6 # Defines the template selection array for the form wizard.
7 # Each defined item is shown as option within the wizard.
8 #
9 # If there is no partialPath property in the userdefined TypoScript
10 # then elementPartials.ELEMENTNAME.10.partialPath is the default.
11 view {
12 elementPartials {
13 TEXTLINE {
14 10 {
15 displayName = Default
16 partialPath = FlatElements/Textfield
17 }
18 }
19 }
20 }
21
22 settings {
23 registeredElements {
24 # TEXTLINE
25 # Used by: frontend, wizard (not implemented right now)
26 # Used ViewHelper: f:form.textfield
27 #
28 # @ToDo: add more details
29 TEXTLINE {
30 # htmlAttributes
31 # Used by: frontend, wizard (not implemented right now)
32 # Overwritable by user: FALSE
33 #
34 # Defines allowed HTML attributes for a specific element.
35 # Based on selfhtml documentation version 8.1.2 (see http://wiki.selfhtml.org/wiki/Referenz:HTML/).
36 # This is needed to detect and map these strings within the user configured element definition as HTML attributes.
37 # As soon as prefix-* is defined every attribute is registered automatically as HTML attribute.
38 htmlAttributes {
39 # generic attributes
40 10 = id
41 20 = class
42 30 = accesskey
43 40 = contenteditable
44 50 = contextmenu
45 60 = dir
46 70 = draggable
47 80 = dropzone
48 90 = hidden
49 100 = lang
50 110 = spellcheck
51 120 = style
52 130 = tabindex
53 140 = title
54 150 = data-*
55 160 = translate
56 # element specific attributes
57 200 = type
58 210 = autocomplete
59 220 = autofocus
60 230 = disabled
61 240 = inputmode
62 250 = list
63 260 = maxlength
64 270 = minlength
65 280 = name
66 290 = pattern
67 300 = placeholder
68 310 = readonly
69 320 = required
70 330 = size
71 340 = value
72 }
73
74 # htmlAttributesUsedByTheViewHelperDirectly
75 # Used by: frontend
76 # Overwritable by user: FALSE
77 #
78 # Each HTML attribute defined at ".htmlAttributes" is available as array within the model.
79 # This array will be added to the resulting HTML tag.
80 # For this purpose the Fluid argument "additionalAttributes" of the ViewHelper is used.
81 #
82 # Some HTML attributes have to be assigned directly as an argument to the ViewHelper.
83 # The htmlAttributesUsedByTheViewHelperDirectly map is used to remove the specified
84 # HTML attribute from the "htmlAttributes" array and sets it for the model's "additionalArguments" array.
85 #
86 # There are two attributes which special behavior:
87 # * disabled
88 # * readonly
89 # These attributes can be assigned to the most ViewHelpers but whenever a "disabled" attribute appears
90 # the browser will disable this element no matter of the value.
91 # See: https://forge.typo3.org/issues/42474
92 # Therefore it is held in the htmlAttributes array and the code removes this attribute if its value is set to 0.
93 htmlAttributesUsedByTheViewHelperDirectly {
94 # generic attributes
95 10 = class
96 20 = dir
97 30 = id
98 40 = lang
99 50 = style
100 60 = title
101 70 = accesskey
102 80 = tabindex
103 90 = onclick
104 100 = name
105 110 = value
106 # TextfieldViewHelper
107 120 = autofocus
108 130 = maxlength
109 140 = size
110 150 = placeholder
111 160 = pattern
112 170 = required
113 180 = type
114 }
115
116 # defaultHtmlAttributeValues
117 # Used by: frontend, wizard (not implemented right now)
118 # Overwritable by user: FALSE
119 #
120 # The following values are automatically set if there is no entry in the user configured element.
121 defaultHtmlAttributeValues {
122 type = text
123 }
124
125 # partialPath
126 # Used by: frontend, wizard (not implemented right now)
127 # Overwritable by user: TRUE
128 #
129 # The defined partial is used to render the element.
130 # The partial paths to the element are build based on the following rule:
131 # {$plugin.tx_form.view.partialRootPath}/{$themeName}/@actionName/{$partialPath}.
132 partialPath =< plugin.tx_form.view.elementPartials.TEXTLINE.10.partialPath
133
134 # visibleInShowAction
135 # Used by: frontend
136 # Overwritable by user: TRUE
137 #
138 # If set to 1 this element is displayed in the form.
139 # @ToDo: add more details
140 visibleInShowAction = 1
141
142 # visibleInConfirmationAction
143 # Used by: frontend
144 # Overwritable by user: TRUE
145 #
146 # If set to 1 this element is displayed in the confirmation page.
147 # @ToDo: add more details
148 visibleInConfirmationAction = 1
149
150 # visibleInProcessAction
151 # Used by: frontend
152 # Overwritable by user: TRUE
153 #
154 # If set to 1 this element is displayed in the mail.
155 # @ToDo: add more details
156 visibleInMail = 1
157 }
158 }
159 }
160 }