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