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