[TASK] EXT:form - Set proper default values in form wizard
[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                                         # partialPath
117                                         # Used by: frontend, wizard (not implemented right now)
118                                         # Overwritable by user: TRUE
119                                         #
120                                         # The defined partial is used to render the element.
121                                         # The partial paths to the element are build based on the following rule:
122                                         # {$plugin.tx_form.view.partialRootPath}/{$themeName}/@actionName/{$partialPath}.
123                                 partialPath =< plugin.tx_form.view.elementPartials.TEXTLINE.10.partialPath
124
125                                         # visibleInShowAction
126                                         # Used by: frontend
127                                         # Overwritable by user: TRUE
128                                         #
129                                         # If set to 1 this element is displayed in the form.
130                                         # @ToDo: add more details
131                                 visibleInShowAction = 1
132
133                                         # visibleInConfirmationAction
134                                         # Used by: frontend
135                                         # Overwritable by user: TRUE
136                                         #
137                                         # If set to 1 this element is displayed in the confirmation page.
138                                         # @ToDo: add more details
139                                 visibleInConfirmationAction = 1
140
141                                         # visibleInProcessAction
142                                         # Used by: frontend
143                                         # Overwritable by user: TRUE
144                                         #
145                                         # If set to 1 this element is displayed in the mail.
146                                         # @ToDo: add more details
147                                 visibleInMail = 1
148                         }
149                 }
150         }
151 }