Added feature #15666: sys_language table icon should be the flag you selected, using...
[Packages/TYPO3.CMS.git] / t3lib / stddb / tbl_be.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2010 Kasper Skårhøj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Contains the dynamic configuation of the fields in the core tables of TYPO3: be_users, be_groups, sys_filemounts and sys_workspace
29 *
30 * $Id$
31 * Revised for TYPO3 3.6 July/2003 by Kasper Skårhøj
32 *
33 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
34 * @see tables.php, tables.sql
35 */
36
37
38
39
40
41
42 /**
43 * Backend users - Those who login into the TYPO3 administration backend
44 */
45 $TCA['be_users'] = array(
46 'ctrl' => $TCA['be_users']['ctrl'],
47 'interface' => array(
48 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
49 ),
50 'columns' => array(
51 'username' => array(
52 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.username',
53 'config' => array(
54 'type' => 'input',
55 'size' => '20',
56 'max' => '50',
57 'eval' => 'nospace,lower,unique,required'
58 )
59 ),
60 'password' => array(
61 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.password',
62 'config' => array(
63 'type' => 'input',
64 'size' => '20',
65 'max' => '40',
66 'eval' => 'required,md5,password'
67 )
68 ),
69 'usergroup' => array(
70 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup',
71 'config' => array(
72 'type' => 'select',
73 'foreign_table' => 'be_groups',
74 'foreign_table_where' => 'ORDER BY be_groups.title',
75 'size' => '5',
76 'maxitems' => '20',
77 # 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
78 'iconsInOptionTags' => 1,
79 'wizards' => array(
80 '_PADDING' => 1,
81 '_VERTICAL' => 1,
82 'edit' => array(
83 'type' => 'popup',
84 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_edit_title',
85 'script' => 'wizard_edit.php',
86 'popup_onlyOpenIfSelected' => 1,
87 'icon' => 'edit2.gif',
88 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
89 ),
90 'add' => array(
91 'type' => 'script',
92 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_add_title',
93 'icon' => 'add.gif',
94 'params' => array(
95 'table' => 'be_groups',
96 'pid' => '0',
97 'setValue' => 'prepend'
98 ),
99 'script' => 'wizard_add.php',
100 ),
101 'list' => array(
102 'type' => 'script',
103 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_list_title',
104 'icon' => 'list.gif',
105 'params' => array(
106 'table' => 'be_groups',
107 'pid' => '0',
108 ),
109 'script' => 'wizard_list.php',
110 )
111 )
112 )
113 ),
114 'lockToDomain' => array(
115 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
116 'config' => array(
117 'type' => 'input',
118 'size' => '20',
119 'eval' => 'trim',
120 'max' => '50',
121 'checkbox' => '',
122 'softref' => 'substitute'
123 )
124 ),
125 'db_mountpoints' => array(
126 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options_db_mounts',
127 'config' => array(
128 'type' => 'group',
129 'internal_type' => 'db',
130 'allowed' => 'pages',
131 'size' => '3',
132 'maxitems' => '10',
133 'autoSizeMax' => 10,
134 'show_thumbs' => '1',
135 'wizards' => array(
136 'suggest' => array(
137 'type' => 'suggest',
138 ),
139 ),
140 )
141 ),
142 'file_mountpoints' => array(
143 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options_file_mounts',
144 'config' => array(
145 'type' => 'select',
146 'foreign_table' => 'sys_filemounts',
147 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
148 'size' => '3',
149 'maxitems' => '10',
150 'autoSizeMax' => 10,
151 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
152 'iconsInOptionTags' => 1,
153 'wizards' => array(
154 '_PADDING' => 1,
155 '_VERTICAL' => 1,
156 'edit' => array(
157 'type' => 'popup',
158 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title',
159 'script' => 'wizard_edit.php',
160 'icon' => 'edit2.gif',
161 'popup_onlyOpenIfSelected' => 1,
162 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
163 ),
164 'add' => array(
165 'type' => 'script',
166 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title',
167 'icon' => 'add.gif',
168 'params' => array(
169 'table' => 'sys_filemounts',
170 'pid' => '0',
171 'setValue' => 'prepend'
172 ),
173 'script' => 'wizard_add.php',
174 ),
175 'list' => array(
176 'type' => 'script',
177 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title',
178 'icon' => 'list.gif',
179 'params' => array(
180 'table' => 'sys_filemounts',
181 'pid' => '0',
182 ),
183 'script' => 'wizard_list.php',
184 )
185 )
186 )
187 ),
188 'email' => array(
189 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
190 'config' => array(
191 'type' => 'input',
192 'size' => '20',
193 'eval' => 'trim',
194 'max' => '80',
195 'softref' => 'email[subst]'
196 )
197 ),
198 'realName' => array(
199 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.name',
200 'config' => array(
201 'type' => 'input',
202 'size' => '20',
203 'eval' => 'trim',
204 'max' => '80'
205 )
206 ),
207 'disable' => array(
208 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
209 'config' => array(
210 'type' => 'check'
211 )
212 ),
213 'disableIPlock' => array(
214 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.disableIPlock',
215 'config' => array(
216 'type' => 'check'
217 )
218 ),
219 'admin' => array(
220 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.admin',
221 'config' => array(
222 'type' => 'check',
223 'default' => '0'
224 )
225 ),
226 'options' => array(
227 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options',
228 'config' => array(
229 'type' => 'check',
230 'items' => array(
231 array('LLL:EXT:lang/locallang_tca.xml:be_users.options_db_mounts', 0),
232 array('LLL:EXT:lang/locallang_tca.xml:be_users.options_file_mounts', 0)
233 ),
234 'default' => '3'
235 )
236 ),
237 'fileoper_perms' => array(
238 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms',
239 'config' => array(
240 'type' => 'check',
241 'items' => array(
242 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_general', 0),
243 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_unzip', 0),
244 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms', 0),
245 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms_copy', 0),
246 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms_delete', 0),
247 ),
248 'default' => '0'
249 )
250 ),
251 'workspace_perms' => array(
252 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms',
253 'config' => array(
254 'type' => 'check',
255 'items' => array(
256 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0),
257 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0),
258 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_custom', 0),
259 ),
260 'default' => 3
261 )
262 ),
263 'starttime' => array(
264 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
265 'config' => array(
266 'type' => 'input',
267 'size' => '8',
268 'max' => '20',
269 'eval' => 'date',
270 'default' => '0',
271 'checkbox' => '0'
272 )
273 ),
274 'endtime' => array(
275 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
276 'config' => array(
277 'type' => 'input',
278 'size' => '8',
279 'max' => '20',
280 'eval' => 'date',
281 'checkbox' => '0',
282 'default' => '0',
283 'range' => array(
284 'upper' => mktime(0,0,0,12,31,2020),
285 )
286 )
287 ),
288 'lang' => array(
289 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.lang',
290 'config' => array(
291 'type' => 'select',
292 'items' => array(
293 array('English', ''),
294 array('Albanian', 'sq'),
295 array('Arabic', 'ar'),
296 array('Basque', 'eu'),
297 array('Bosnian', 'ba'),
298 array('Brazilian Portuguese', 'br'),
299 array('Bulgarian', 'bg'),
300 array('Catalan', 'ca'),
301 array('Chinese (Simpl.)', 'ch'),
302 array('Chinese (Trad.)', 'hk'),
303 array('Croatian', 'hr'),
304 array('Czech', 'cz'),
305 array('Danish', 'dk'),
306 array('Dutch', 'nl'),
307 array('Esperanto', 'eo'),
308 array('Estonian', 'et'),
309 array('Faroese', 'fo'),
310 array('Finnish', 'fi'),
311 array('French', 'fr'),
312 array('Galician', 'ga'),
313 array('Georgian', 'ge'),
314 array('German', 'de'),
315 array('Greek', 'gr'),
316 array('Greenlandic', 'gl'),
317 array('Hebrew', 'he'),
318 array('Hindi', 'hi'),
319 array('Hungarian', 'hu'),
320 array('Icelandic', 'is'),
321 array('Italian', 'it'),
322 array('Japanese', 'jp'),
323 array('Khmer', 'km'),
324 array('Korean', 'kr'),
325 array('Latvian', 'lv'),
326 array('Lithuanian', 'lt'),
327 array('Malay', 'my'),
328 array('Norwegian', 'no'),
329 array('Persian', 'fa'),
330 array('Polish', 'pl'),
331 array('Portuguese', 'pt'),
332 array('Romanian', 'ro'),
333 array('Russian', 'ru'),
334 array('Serbian', 'sr'),
335 array('Slovak', 'sk'),
336 array('Slovenian', 'si'),
337 array('Spanish', 'es'),
338 array('Swedish', 'se'),
339 array('Thai', 'th'),
340 array('Turkish', 'tr'),
341 array('Ukrainian', 'ua'),
342 array('Vietnamese', 'vn'),
343 )
344 )
345 ),
346 'userMods' => array(
347 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
348 'config' => array(
349 'type' => 'select',
350 'special' => 'modListUser',
351 'size' => '5',
352 'autoSizeMax' => 50,
353 'maxitems' => '100',
354 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
355 'iconsInOptionTags' => 1,
356 )
357 ),
358 'allowed_languages' => array(
359 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
360 'config' => array(
361 'type' => 'select',
362 'special' => 'languages',
363 'maxitems' => '1000',
364 'renderMode' => 'checkbox',
365 )
366 ),
367 'TSconfig' => array(
368 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
369 'config' => array(
370 'type' => 'text',
371 'cols' => '40',
372 'rows' => '5',
373 'wizards' => array(
374 '_PADDING' => 4,
375 '0' => array(
376 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
377 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
378 'script' => 'wizard_tsconfig.php?mode=beuser',
379 'icon' => 'wizard_tsconfig.gif',
380 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
381 )
382 ),
383 'softref' => 'TSconfig'
384 ),
385 'defaultExtras' => 'fixed-font : enable-tab',
386 ),
387 'createdByAction' => array(
388 'config' => array(
389 'type' => 'passthrough'
390 )
391 ),
392 'lastlogin' => array(
393 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
394 'config' => array(
395 'type' => 'input',
396 'readOnly' => '1',
397 'size' => '12',
398 'eval' => 'datetime',
399 'default' => 0,
400 )
401 )
402 ),
403 'types' => array(
404 '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
405 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, userMods;;;;2-2-2, allowed_languages,
406 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, fileoper_perms,
407 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
408 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
409 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
410 ),
411 '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
412 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2, db_mountpoints;;;;3-3-3, file_mountpoints;;;;4-4-4,
413 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
414 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
415 )
416 ),
417 );
418
419
420
421 /**
422 * Backend usergroups - Much permission criterias are based on membership of backend groups.
423 */
424 $TCA['be_groups'] = array(
425 'ctrl' => $TCA['be_groups']['ctrl'],
426 'interface' => array(
427 'showRecordFieldList' => 'title, db_mountpoints, file_mountpoints, fileoper_perms, inc_access_lists, tables_select, tables_modify, pagetypes_select, non_exclude_fields, groupMods, lockToDomain, description'
428 ),
429 'columns' => array(
430 'title' => array(
431 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.title',
432 'config' => array(
433 'type' => 'input',
434 'size' => '25',
435 'max' => '50',
436 'eval' => 'trim,required'
437 )
438 ),
439 'db_mountpoints' => array(
440 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
441 'config' => array(
442 'type' => 'group',
443 'internal_type' => 'db',
444 'allowed' => 'pages',
445 'size' => '3',
446 'maxitems' => 20,
447 'autoSizeMax' => 10,
448 'show_thumbs' => '1',
449 'wizards' => array(
450 'suggest' => array(
451 'type' => 'suggest',
452 ),
453 ),
454 )
455 ),
456 'file_mountpoints' => array(
457 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
458 'config' => array(
459 'type' => 'select',
460 'foreign_table' => 'sys_filemounts',
461 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
462 'size' => '3',
463 'maxitems' => 20,
464 'autoSizeMax' => 10,
465 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
466 'iconsInOptionTags' => 1,
467 'wizards' => array(
468 '_PADDING' => 1,
469 '_VERTICAL' => 1,
470 'edit' => array(
471 'type' => 'popup',
472 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title',
473 'script' => 'wizard_edit.php',
474 'popup_onlyOpenIfSelected' => 1,
475 'icon' => 'edit2.gif',
476 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
477 ),
478 'add' => array(
479 'type' => 'script',
480 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title',
481 'icon' => 'add.gif',
482 'params' => array(
483 'table' => 'sys_filemounts',
484 'pid' => '0',
485 'setValue' => 'prepend'
486 ),
487 'script' => 'wizard_add.php',
488 ),
489 'list' => array(
490 'type' => 'script',
491 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title',
492 'icon' => 'list.gif',
493 'params' => array(
494 'table' => 'sys_filemounts',
495 'pid' => '0',
496 ),
497 'script' => 'wizard_list.php',
498 )
499 )
500 )
501 ),
502 'fileoper_perms' => array(
503 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms',
504 'config' => array(
505 'type' => 'check',
506 'items' => array(
507 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_general', 0),
508 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_unzip', 0),
509 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms', 0),
510 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_copy', 0),
511 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_delete', 0),
512 ),
513 'default' => '7'
514 )
515 ),
516 'workspace_perms' => array(
517 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms',
518 'config' => array(
519 'type' => 'check',
520 'items' => array(
521 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0),
522 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0),
523 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_custom', 0),
524 ),
525 'default' => 0
526 )
527 ),
528 'pagetypes_select' => array(
529 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.pagetypes_select',
530 'config' => array(
531 'type' => 'select',
532 'special' => 'pagetypes',
533 'size' => '5',
534 'autoSizeMax' => 50,
535 'maxitems' => 20,
536 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
537 'iconsInOptionTags' => 1,
538 )
539 ),
540 'tables_modify' => array(
541 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_modify',
542 'config' => array(
543 'type' => 'select',
544 'special' => 'tables',
545 'size' => '5',
546 'autoSizeMax' => 50,
547 'maxitems' => 100,
548 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
549 'iconsInOptionTags' => 1,
550 )
551 ),
552 'tables_select' => array(
553 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_select',
554 'config' => array(
555 'type' => 'select',
556 'special' => 'tables',
557 'size' => '5',
558 'autoSizeMax' => 50,
559 'maxitems' => 100,
560 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
561 'iconsInOptionTags' => 1,
562 )
563 ),
564 'non_exclude_fields' => array(
565 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.non_exclude_fields',
566 'config' => array(
567 'type' => 'select',
568 'special' => 'exclude',
569 'size' => '25',
570 'maxitems' => 1000,
571 'autoSizeMax' => 50,
572 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
573 )
574 ),
575 'explicit_allowdeny' => array(
576 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.explicit_allowdeny',
577 'config' => array(
578 'type' => 'select',
579 'special' => 'explicitValues',
580 'maxitems' => 1000,
581 'renderMode' => 'checkbox',
582 )
583 ),
584 'allowed_languages' => array(
585 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
586 'config' => array(
587 'type' => 'select',
588 'special' => 'languages',
589 'maxitems' => 1000,
590 'renderMode' => 'checkbox',
591 )
592 ),
593 'custom_options' => array(
594 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.custom_options',
595 'config' => array(
596 'type' => 'select',
597 'special' => 'custom',
598 'maxitems' => 1000,
599 'renderMode' => 'checkbox',
600 )
601 ),
602 'hidden' => array(
603 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
604 'config' => array(
605 'type' => 'check',
606 'default' => '0'
607 )
608 ),
609 'lockToDomain' => array(
610 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
611 'config' => array(
612 'type' => 'input',
613 'size' => '20',
614 'eval' => 'trim',
615 'max' => '50',
616 'checkbox' => '',
617 'softref' => 'substitute'
618 )
619 ),
620 'groupMods' => array(
621 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
622 'config' => array(
623 'type' => 'select',
624 'special' => 'modListGroup',
625 'size' => '5',
626 'autoSizeMax' => 50,
627 'maxitems' => 100,
628 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
629 'iconsInOptionTags' => 1,
630 )
631 ),
632 'inc_access_lists' => array(
633 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.inc_access_lists',
634 'config' => array(
635 'type' => 'check',
636 'default' => '0'
637 )
638 ),
639 'description' => array(
640 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
641 'config' => array(
642 'type' => 'text',
643 'rows' => 5,
644 'cols' => 30
645 )
646 ),
647 'TSconfig' => array(
648 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
649 'config' => array(
650 'type' => 'text',
651 'cols' => '40',
652 'rows' => '5',
653 'wizards' => array(
654 '_PADDING' => 4,
655 '0' => array(
656 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
657 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
658 'script' => 'wizard_tsconfig.php?mode=beuser',
659 'icon' => 'wizard_tsconfig.gif',
660 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
661 )
662 ),
663 'softref' => 'TSconfig'
664 ),
665 'defaultExtras' => 'fixed-font : enable-tab',
666 ),
667 'hide_in_lists' => array(
668 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.hide_in_lists',
669 'config' => array(
670 'type' => 'check',
671 'default' => 0
672 )
673 ),
674 'subgroup' => array(
675 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.subgroup',
676 'config' => array(
677 'type' => 'select',
678 'foreign_table' => 'be_groups',
679 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
680 'size' => '5',
681 'autoSizeMax' => 50,
682 'maxitems' => 20,
683 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
684 'iconsInOptionTags' => 1,
685 )
686 )
687 ),
688 'types' => array(
689 '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
690 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1,
691 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, fileoper_perms,
692 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3,
693 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended'
694 ),
695 '1' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
696 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1, groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny , allowed_languages;;;;2-2-2, custom_options;;;;3-3-3,
697 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, fileoper_perms,
698 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3,
699 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended'
700 )
701 )
702 );
703
704
705
706 /**
707 * System filemounts - Defines filepaths on the server which can be mounted for users so they can upload and manage files online by eg. the Filelist module
708 */
709 $TCA['sys_filemounts'] = array(
710 'ctrl' => $TCA['sys_filemounts']['ctrl'],
711 'interface' => array(
712 'showRecordFieldList' => 'title,hidden,path,base'
713 ),
714 'columns' => array(
715 'title' => array(
716 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.title',
717 'config' => array(
718 'type' => 'input',
719 'size' => '20',
720 'max' => '30',
721 'eval' => 'required,trim'
722 )
723 ),
724 'path' => array(
725 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.path',
726 'config' => array(
727 'type' => 'input',
728 'size' => '40',
729 'max' => '120',
730 'eval' => 'required,trim',
731 'softref' => 'substitute'
732 )
733 ),
734 'hidden' => array(
735 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
736 'config' => array(
737 'type' => 'check'
738 )
739 ),
740 'base' => array(
741 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base',
742 'config' => array(
743 'type' => 'radio',
744 'items' => array(
745 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_absolute', 0),
746 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_relative', 1)
747 ),
748 'default' => 0
749 )
750 )
751 ),
752 'types' => array(
753 '0' => array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
754 )
755 );
756
757
758
759
760 /**
761 * System languages - Defines possible languages used for translation of records in the system
762 */
763 $TCA['sys_language'] = array(
764 'ctrl' => $TCA['sys_language']['ctrl'],
765 'interface' => array(
766 'showRecordFieldList' => 'hidden,title'
767 ),
768 'columns' => array(
769 'title' => array(
770 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
771 'config' => array(
772 'type' => 'input',
773 'size' => '35',
774 'max' => '80',
775 'eval' => 'trim,required'
776 )
777 ),
778 'hidden' => array(
779 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
780 'exclude' => 1,
781 'config' => array(
782 'type' => 'check',
783 'default' => '0'
784 )
785 ),
786 'static_lang_isocode' => array(
787 'exclude' => 1,
788 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
789 'displayCond' => 'EXT:static_info_tables:LOADED:true',
790 'config' => array(
791 'type' => 'select',
792 'items' => array(
793 array('', 0),
794 ),
795 'foreign_table' => 'static_languages',
796 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
797 'size' => 1,
798 'minitems' => 0,
799 'maxitems' => 1,
800 )
801 ),
802 'flag' => array(
803 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
804 'config' => array(
805 'type' => 'select',
806 'items' => array(
807 array('', 0, ''),
808 ),
809 'selicon_cols' => 8,
810 'size' => 1,
811 'minitems' => 0,
812 'maxitems' => 1,
813 )
814 )
815 ),
816 'types' => array(
817 '1' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
818 )
819 );
820
821
822
823
824 /**
825 * System News (displayed on Login screen)
826 */
827 $TCA['sys_news'] = array(
828 'ctrl' => $TCA['sys_news']['ctrl'],
829 'interface' => array(
830 'showRecordFieldList' => 'hidden,title,content,starttime,endtime'
831 ),
832 'columns' => array(
833 'hidden' => array(
834 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
835 'exclude' => 1,
836 'config' => array(
837 'type' => 'check',
838 'default' => '0'
839 )
840 ),
841 'starttime' => array(
842 'exclude' => 1,
843 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
844 'config' => array(
845 'type' => 'input',
846 'size' => '8',
847 'max' => '20',
848 'eval' => 'date',
849 'checkbox' => '0',
850 'default' => '0'
851 )
852 ),
853 'endtime' => array(
854 'exclude' => 1,
855 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
856 'config' => array(
857 'type' => 'input',
858 'size' => '8',
859 'max' => '20',
860 'eval' => 'date',
861 'checkbox' => '0',
862 'default' => '0'
863 )
864 ),
865 'title' => array(
866 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title',
867 'config' => array(
868 'type' => 'input',
869 'size' => '30',
870 'max' => '255',
871 'eval' => 'required'
872 )
873 ),
874 'content' => array(
875 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.text',
876 'config' => array(
877 'type' => 'text',
878 'cols' => '48',
879 'rows' => '5',
880 'wizards' => array(
881 '_PADDING' => 4,
882 '_VALIGN' => 'middle',
883 'RTE' => array(
884 'notNewRecords' => 1,
885 'RTEonly' => 1,
886 'type' => 'script',
887 'title' => 'LLL:EXT:cms/locallang_ttc.php:bodytext.W.RTE',
888 'icon' => 'wizard_rte2.gif',
889 'script' => 'wizard_rte.php'
890 ),
891 ),
892 ),
893 ),
894 ),
895 'types' => array(
896 '1' => array('showitem' => '
897 hidden, title, content;;9;richtext:rte_transform[flag=rte_enabled|mode=ts_css];3-3-3,
898 --div--;LLL:EXT:lang/locallang_tca.xml:sys_news.tabs.access, starttime, endtime'
899 )
900 )
901 );
902
903 ?>