[!!!][TASK] Improve flex and TCA handling in FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_action / Configuration / TCA / sys_action.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'default_sortby' => 'ORDER BY title',
8 'sortby' => 'sorting',
9 'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
10 'title' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action',
11 'crdate' => 'crdate',
12 'cruser_id' => 'cruser_id',
13 'adminOnly' => true,
14 'rootLevel' => -1,
15 'setToDefaultOnCopy' => 'assign_to_groups',
16 'enablecolumns' => [
17 'disabled' => 'hidden'
18 ],
19 'typeicon_classes' => [
20 'default' => 'mimetypes-x-sys_action'
21 ],
22 'type' => 'type'
23 ],
24 'interface' => [
25 'showRecordFieldList' => 'hidden,title,type,description,assign_to_groups'
26 ],
27 'columns' => [
28 'title' => [
29 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.title',
30 'config' => [
31 'type' => 'input',
32 'size' => 25,
33 'max' => 255,
34 'eval' => 'trim,required'
35 ]
36 ],
37 'description' => [
38 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.description',
39 'config' => [
40 'type' => 'text',
41 'rows' => 10,
42 'cols' => 48
43 ]
44 ],
45 'hidden' => [
46 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.hidden',
47 'config' => [
48 'type' => 'check'
49 ]
50 ],
51 'type' => [
52 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.type',
53 'config' => [
54 'type' => 'select',
55 'renderType' => 'selectSingle',
56 'items' => [
57 ['', '0'],
58 ['LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.1', '1'],
59 ['LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.2', '2'],
60 ['LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.3', '3'],
61 ['LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.4', '4'],
62 ['LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.5', '5']
63 ]
64 ]
65 ],
66 'assign_to_groups' => [
67 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.assign_to_groups',
68 'config' => [
69 'type' => 'select',
70 'renderType' => 'selectMultipleSideBySide',
71 'foreign_table' => 'be_groups',
72 'foreign_table_where' => 'ORDER BY be_groups.title',
73 'MM' => 'sys_action_asgr_mm',
74 'size' => 10,
75 'minitems' => 0,
76 'maxitems' => 200,
77 'autoSizeMax' => 10
78 ]
79 ],
80 't1_userprefix' => [
81 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_userprefix',
82 'config' => [
83 'type' => 'input',
84 'size' => 25,
85 'max' => '10',
86 'eval' => 'trim'
87 ]
88 ],
89 't1_allowed_groups' => [
90 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_allowed_groups',
91 'config' => [
92 'type' => 'select',
93 'renderType' => 'selectMultipleSideBySide',
94 'foreign_table' => 'be_groups',
95 'foreign_table_where' => 'ORDER BY be_groups.title',
96 'size' => 10,
97 'maxitems' => 20,
98 'autoSizeMax' => 10
99 ]
100 ],
101 't1_create_user_dir' => [
102 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_create_user_dir',
103 'config' => [
104 'type' => 'check'
105 ]
106 ],
107 't1_copy_of_user' => [
108 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_copy_of_user',
109 'config' => [
110 'type' => 'group',
111 'internal_type' => 'db',
112 'allowed' => 'be_users',
113 'size' => 1,
114 'maxitems' => 1,
115 'minitems' => 1,
116 'show_thumbs' => true,
117 'wizards' => [
118 'suggest' => [
119 'type' => 'suggest'
120 ]
121 ]
122 ]
123 ],
124 't3_listPid' => [
125 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t3_listPid',
126 'config' => [
127 'type' => 'group',
128 'internal_type' => 'db',
129 'allowed' => 'pages',
130 'size' => 1,
131 'maxitems' => 1,
132 'minitems' => 1,
133 'show_thumbs' => true,
134 'wizards' => [
135 'suggest' => [
136 'type' => 'suggest'
137 ]
138 ]
139 ]
140 ],
141 't3_tables' => [
142 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t3_tables',
143 'config' => [
144 'type' => 'select',
145 'renderType' => 'selectMultipleSideBySide',
146 'special' => 'tables',
147 'items' => [
148 ['', '']
149 ]
150 ]
151 ],
152 't4_recordsToEdit' => [
153 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t4_recordsToEdit',
154 'config' => [
155 'type' => 'group',
156 'internal_type' => 'db',
157 'allowed' => '*',
158 'prepend_tname' => true,
159 'size' => 5,
160 'maxitems' => 50,
161 'minitems' => 1,
162 'show_thumbs' => true,
163 'wizards' => [
164 'suggest' => [
165 'type' => 'suggest'
166 ]
167 ]
168 ]
169 ]
170 ],
171 'types' => [
172 '0' => ['showitem' => '
173 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
174 type,title,
175 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
176 hidden,assign_to_groups,
177 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
178 description,
179 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
180 '],
181 '1' => ['showitem' => '
182 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
183 type,title,t1_userprefix,t1_copy_of_user,t1_allowed_groups,t1_create_user_dir,
184 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
185 hidden,assign_to_groups,
186 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
187 description,
188 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
189 '],
190 '2' => ['showitem' => '
191 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
192 type,title,
193 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
194 hidden,assign_to_groups,
195 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
196 description,
197 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
198 '],
199 '3' => ['showitem' => '
200 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
201 type,title,t3_listPid,t3_tables,
202 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
203 hidden,assign_to_groups,
204 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
205 description,
206 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
207 '],
208 '4' => ['showitem' => '
209 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
210 type,title,t4_recordsToEdit,
211 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
212 hidden,assign_to_groups,
213 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
214 description,
215 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
216 '],
217 '5' => ['showitem' => '
218 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
219 type,title,t3_listPid;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.new_record.pid,
220 t3_tables;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.new_record.tablename,
221 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
222 hidden,assign_to_groups,
223 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
224 description,
225 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
226 ']
227 ]
228 ];