[!!!][TASK] Improve flex and TCA handling in FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_users.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'username',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'delete' => 'deleted',
11 'adminOnly' => true,
12 'rootLevel' => 1,
13 'default_sortby' => 'ORDER BY admin, username',
14 'enablecolumns' => [
15 'disabled' => 'disable',
16 'starttime' => 'starttime',
17 'endtime' => 'endtime'
18 ],
19 'type' => 'admin',
20 'typeicon_column' => 'admin',
21 'typeicon_classes' => [
22 '0' => 'status-user-backend',
23 '1' => 'status-user-admin',
24 'default' => 'status-user-backend'
25 ],
26 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,file_permissions,userMods',
27 'versioningWS_alwaysAllowLiveEdit' => true,
28 'searchFields' => 'username,email,realName'
29 ],
30 'interface' => [
31 'showRecordFieldList' => 'username,description,usergroup,db_mountpoints,file_mountpoints,admin,options,file_permissions,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
32 ],
33 'columns' => [
34 'username' => [
35 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.username',
36 'config' => [
37 'type' => 'input',
38 'size' => 20,
39 'max' => 50,
40 'eval' => 'nospace,trim,lower,unique,required',
41 'autocomplete' => false,
42 ]
43 ],
44 'description' => [
45 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.description',
46 'config' => [
47 'type' => 'text',
48 'rows' => 5,
49 'cols' => 30,
50 'max' => 2000,
51 ]
52 ],
53 'password' => [
54 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.password',
55 'config' => [
56 'type' => 'input',
57 'size' => 20,
58 'max' => 40,
59 'eval' => 'trim,required,md5,password',
60 'autocomplete' => false,
61 ]
62 ],
63 'usergroup' => [
64 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup',
65 'config' => [
66 'type' => 'select',
67 'renderType' => 'selectMultipleSideBySide',
68 'foreign_table' => 'be_groups',
69 'foreign_table_where' => 'ORDER BY be_groups.title',
70 'size' => 5,
71 'maxitems' => 20,
72 'enableMultiSelectFilterTextfield' => true,
73 'wizards' => [
74 '_VERTICAL' => 1,
75 'edit' => [
76 'type' => 'popup',
77 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_edit_title',
78 'module' => [
79 'name' => 'wizard_edit',
80 ],
81 'popup_onlyOpenIfSelected' => true,
82 'icon' => 'actions-open',
83 'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
84 ],
85 'add' => [
86 'type' => 'script',
87 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_add_title',
88 'icon' => 'actions-add',
89 'params' => [
90 'table' => 'be_groups',
91 'pid' => 0,
92 'setValue' => 'prepend'
93 ],
94 'module' => [
95 'name' => 'wizard_add'
96 ]
97 ],
98 'list' => [
99 'type' => 'script',
100 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_list_title',
101 'icon' => 'actions-system-list-open',
102 'params' => [
103 'table' => 'be_groups',
104 'pid' => 0
105 ],
106 'module' => [
107 'name' => 'wizard_list'
108 ]
109 ]
110 ]
111 ]
112 ],
113 'avatar' => [
114 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.avatar',
115 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
116 'avatar',
117 ['maxitems' => 1],
118 $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
119 )
120 ],
121 'lockToDomain' => [
122 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:lockToDomain',
123 'config' => [
124 'type' => 'input',
125 'size' => 20,
126 'eval' => 'trim',
127 'max' => 50,
128 'softref' => 'substitute'
129 ]
130 ],
131 'db_mountpoints' => [
132 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_db_mounts',
133 'config' => [
134 'type' => 'group',
135 'internal_type' => 'db',
136 'allowed' => 'pages',
137 'size' => 3,
138 'maxitems' => 100,
139 'autoSizeMax' => 10,
140 'show_thumbs' => true,
141 'wizards' => [
142 'suggest' => [
143 'type' => 'suggest'
144 ]
145 ]
146 ]
147 ],
148 'file_mountpoints' => [
149 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_file_mounts',
150 'config' => [
151 'type' => 'select',
152 'renderType' => 'selectMultipleSideBySide',
153 'foreign_table' => 'sys_filemounts',
154 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
155 'size' => 3,
156 'maxitems' => 100,
157 'autoSizeMax' => 10,
158 'wizards' => [
159 '_VERTICAL' => 1,
160 'edit' => [
161 'type' => 'popup',
162 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_edit_title',
163 'module' => [
164 'name' => 'wizard_edit',
165 ],
166 'icon' => 'actions-open',
167 'popup_onlyOpenIfSelected' => true,
168 'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
169 ],
170 'add' => [
171 'type' => 'script',
172 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_add_title',
173 'icon' => 'actions-add',
174 'params' => [
175 'table' => 'sys_filemounts',
176 'pid' => 0,
177 'setValue' => 'prepend'
178 ],
179 'module' => [
180 'name' => 'wizard_add'
181 ]
182 ],
183 'list' => [
184 'type' => 'script',
185 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_list_title',
186 'icon' => 'actions-system-list-open',
187 'params' => [
188 'table' => 'sys_filemounts',
189 'pid' => 0
190 ],
191 'module' => [
192 'name' => 'wizard_list'
193 ]
194 ]
195 ]
196 ]
197 ],
198 'email' => [
199 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.email',
200 'config' => [
201 'type' => 'input',
202 'size' => 20,
203 'eval' => 'trim',
204 'max' => 80,
205 'softref' => 'email[subst]'
206 ]
207 ],
208 'realName' => [
209 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.name',
210 'config' => [
211 'type' => 'input',
212 'size' => 20,
213 'eval' => 'trim',
214 'max' => 80
215 ]
216 ],
217 'disable' => [
218 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.disable',
219 'config' => [
220 'type' => 'check'
221 ]
222 ],
223 'disableIPlock' => [
224 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.disableIPlock',
225 'config' => [
226 'type' => 'check'
227 ]
228 ],
229 'admin' => [
230 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.admin',
231 'config' => [
232 'type' => 'check',
233 'default' => 0
234 ]
235 ],
236 'options' => [
237 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options',
238 'config' => [
239 'type' => 'check',
240 'items' => [
241 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_db_mounts', 0],
242 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_file_mounts', 0]
243 ],
244 'default' => 3
245 ]
246 ],
247 'file_permissions' => [
248 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.fileoper_perms',
249 'config' => [
250 'type' => 'select',
251 'renderType' => 'selectCheckBox',
252 'items' => [
253 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'],
254 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'],
255 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'],
256 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'],
257 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'],
258 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'],
259 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'],
260 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'],
261 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'recursivedeleteFolder', 'apps-filetree-folder-default'],
262 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'],
263 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'],
264 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'],
265 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'],
266 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'],
267 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_replace', 'replaceFile', 'mimetypes-other-other'],
268 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'],
269 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'],
270 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other']
271 ],
272 'size' => 17,
273 'maxitems' => 17,
274 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,replaceFile,moveFile,copyFile,deleteFile'
275 ]
276 ],
277 'workspace_perms' => [
278 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
279 'config' => [
280 'type' => 'check',
281 'items' => [
282 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:workspace_perms_live', 0]
283 ],
284 'default' => 1
285 ]
286 ],
287 'starttime' => [
288 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
289 'config' => [
290 'type' => 'input',
291 'size' => 13,
292 'eval' => 'datetime',
293 'default' => 0
294 ]
295 ],
296 'endtime' => [
297 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
298 'config' => [
299 'type' => 'input',
300 'size' => 13,
301 'eval' => 'datetime',
302 'default' => 0,
303 'range' => [
304 'upper' => mktime(0, 0, 0, 1, 1, 2038)
305 ]
306 ]
307 ],
308 'lang' => [
309 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.lang',
310 'config' => [
311 'type' => 'select',
312 'renderType' => 'selectSingle',
313 'items' => [
314 ['English', '']
315 ]
316 ]
317 ],
318 'userMods' => [
319 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:userMods',
320 'config' => [
321 'type' => 'select',
322 'renderType' => 'selectCheckBox',
323 'special' => 'modListUser',
324 'size' => 5,
325 'autoSizeMax' => 50,
326 'maxitems' => 100,
327 ]
328 ],
329 'allowed_languages' => [
330 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:allowed_languages',
331 'config' => [
332 'type' => 'select',
333 'renderType' => 'selectCheckBox',
334 'special' => 'languages',
335 ]
336 ],
337 'TSconfig' => [
338 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:TSconfig',
339 'config' => [
340 'type' => 'text',
341 'cols' => 40,
342 'rows' => 5
343 ],
344 'defaultExtras' => 'fixed-font : enable-tab'
345 ],
346 'createdByAction' => [
347 'config' => [
348 'type' => 'passthrough'
349 ]
350 ],
351 'lastlogin' => [
352 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.lastlogin',
353 'config' => [
354 'type' => 'input',
355 'readOnly' => true,
356 'size' => 12,
357 'eval' => 'datetime',
358 'default' => 0
359 ]
360 ],
361 'category_perms' => [
362 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:category_perms',
363 'config' => [
364 'type' => 'select',
365 'renderType' => 'selectTree',
366 'foreign_table' => 'sys_category',
367 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
368 'treeConfig' => [
369 'parentField' => 'parent',
370 'appearance' => [
371 'expandAll' => false,
372 'showHeader' => false,
373 'maxLevels' => 99,
374 ],
375 ],
376 'size' => 20,
377 'minitems' => 0,
378 ]
379 ],
380 ],
381 'types' => [
382 '0' => ['showitem' => '
383 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
384 admin, username, password, avatar, usergroup, realName, email, lang, lastlogin,
385 --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.rights,
386 userMods, allowed_languages,
387 --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces,
388 workspace_perms, db_mountpoints, options, file_mountpoints, file_permissions, category_perms,
389 --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.options,
390 lockToDomain, disableIPlock, TSconfig,
391 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
392 disable,--palette--;;timeRestriction,
393 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
394 description,
395 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
396 '],
397 '1' => ['showitem' => '
398 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
399 admin, username, password, avatar, usergroup, realName, email, lang, lastlogin,
400 --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.options,
401 disableIPlock, TSconfig, db_mountpoints, options, file_mountpoints,
402 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
403 disable,--palette--;;timeRestriction,
404 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
405 description,
406 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
407 ']
408 ],
409 'palettes' => [
410 'timeRestriction' => ['showitem' => 'starttime, endtime']
411 ],
412 ];