replaced t3skin sprites.css with autogenerated one
[Packages/TYPO3.CMS.git] / t3lib / stddb / tbl_be.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2010 Kasper Skaarhoj (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 Skaarhoj
32 *
33 * @author Kasper Skaarhoj <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('Korean', 'kr'),
324 array('Latvian', 'lv'),
325 array('Lithuanian', 'lt'),
326 array('Malay', 'my'),
327 array('Norwegian', 'no'),
328 array('Persian', 'fa'),
329 array('Polish', 'pl'),
330 array('Portuguese', 'pt'),
331 array('Romanian', 'ro'),
332 array('Russian', 'ru'),
333 array('Serbian', 'sr'),
334 array('Slovak', 'sk'),
335 array('Slovenian', 'si'),
336 array('Spanish', 'es'),
337 array('Swedish', 'se'),
338 array('Thai', 'th'),
339 array('Turkish', 'tr'),
340 array('Ukrainian', 'ua'),
341 array('Vietnamese', 'vn'),
342 )
343 )
344 ),
345 'userMods' => array(
346 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
347 'config' => array(
348 'type' => 'select',
349 'special' => 'modListUser',
350 'size' => '5',
351 'autoSizeMax' => 50,
352 'maxitems' => '100',
353 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
354 'iconsInOptionTags' => 1,
355 )
356 ),
357 'allowed_languages' => array(
358 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
359 'config' => array(
360 'type' => 'select',
361 'special' => 'languages',
362 'maxitems' => '1000',
363 'renderMode' => 'checkbox',
364 )
365 ),
366 'TSconfig' => array(
367 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
368 'config' => array(
369 'type' => 'text',
370 'cols' => '40',
371 'rows' => '5',
372 'wizards' => array(
373 '_PADDING' => 4,
374 '0' => array(
375 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
376 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
377 'script' => 'wizard_tsconfig.php?mode=beuser',
378 'icon' => 'wizard_tsconfig.gif',
379 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
380 )
381 ),
382 'softref' => 'TSconfig'
383 ),
384 'defaultExtras' => 'fixed-font : enable-tab',
385 ),
386 'createdByAction' => array(
387 'config' => array(
388 'type' => 'passthrough'
389 )
390 ),
391 'lastlogin' => array(
392 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
393 'config' => array(
394 'type' => 'input',
395 'readOnly' => '1',
396 'size' => '12',
397 'eval' => 'datetime',
398 'default' => 0,
399 )
400 )
401 ),
402 'types' => array(
403 '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,
404 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, userMods;;;;2-2-2, allowed_languages,
405 --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,
406 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
407 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
408 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
409 ),
410 '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,
411 --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,
412 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
413 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
414 )
415 ),
416 );
417
418
419
420 /**
421 * Backend usergroups - Much permission criterias are based on membership of backend groups.
422 */
423 $TCA['be_groups'] = array(
424 'ctrl' => $TCA['be_groups']['ctrl'],
425 'interface' => array(
426 'showRecordFieldList' => 'title, db_mountpoints, file_mountpoints, fileoper_perms, inc_access_lists, tables_select, tables_modify, pagetypes_select, non_exclude_fields, groupMods, lockToDomain, description'
427 ),
428 'columns' => array(
429 'title' => array(
430 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.title',
431 'config' => array(
432 'type' => 'input',
433 'size' => '25',
434 'max' => '50',
435 'eval' => 'trim,required'
436 )
437 ),
438 'db_mountpoints' => array(
439 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
440 'config' => array(
441 'type' => 'group',
442 'internal_type' => 'db',
443 'allowed' => 'pages',
444 'size' => '3',
445 'maxitems' => 20,
446 'autoSizeMax' => 10,
447 'show_thumbs' => '1',
448 'wizards' => array(
449 'suggest' => array(
450 'type' => 'suggest',
451 ),
452 ),
453 )
454 ),
455 'file_mountpoints' => array(
456 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
457 'config' => array(
458 'type' => 'select',
459 'foreign_table' => 'sys_filemounts',
460 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
461 'size' => '3',
462 'maxitems' => 20,
463 'autoSizeMax' => 10,
464 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
465 'iconsInOptionTags' => 1,
466 'wizards' => array(
467 '_PADDING' => 1,
468 '_VERTICAL' => 1,
469 'edit' => array(
470 'type' => 'popup',
471 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title',
472 'script' => 'wizard_edit.php',
473 'popup_onlyOpenIfSelected' => 1,
474 'icon' => 'edit2.gif',
475 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
476 ),
477 'add' => array(
478 'type' => 'script',
479 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title',
480 'icon' => 'add.gif',
481 'params' => array(
482 'table' => 'sys_filemounts',
483 'pid' => '0',
484 'setValue' => 'prepend'
485 ),
486 'script' => 'wizard_add.php',
487 ),
488 'list' => array(
489 'type' => 'script',
490 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title',
491 'icon' => 'list.gif',
492 'params' => array(
493 'table' => 'sys_filemounts',
494 'pid' => '0',
495 ),
496 'script' => 'wizard_list.php',
497 )
498 )
499 )
500 ),
501 'fileoper_perms' => array(
502 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms',
503 'config' => array(
504 'type' => 'check',
505 'items' => array(
506 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_general', 0),
507 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_unzip', 0),
508 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms', 0),
509 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_copy', 0),
510 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_delete', 0),
511 ),
512 'default' => '7'
513 )
514 ),
515 'workspace_perms' => array(
516 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms',
517 'config' => array(
518 'type' => 'check',
519 'items' => array(
520 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0),
521 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0),
522 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_custom', 0),
523 ),
524 'default' => 0
525 )
526 ),
527 'pagetypes_select' => array(
528 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.pagetypes_select',
529 'config' => array(
530 'type' => 'select',
531 'special' => 'pagetypes',
532 'size' => '5',
533 'autoSizeMax' => 50,
534 'maxitems' => 20,
535 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
536 'iconsInOptionTags' => 1,
537 )
538 ),
539 'tables_modify' => array(
540 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_modify',
541 'config' => array(
542 'type' => 'select',
543 'special' => 'tables',
544 'size' => '5',
545 'autoSizeMax' => 50,
546 'maxitems' => 100,
547 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
548 'iconsInOptionTags' => 1,
549 )
550 ),
551 'tables_select' => array(
552 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_select',
553 'config' => array(
554 'type' => 'select',
555 'special' => 'tables',
556 'size' => '5',
557 'autoSizeMax' => 50,
558 'maxitems' => 100,
559 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
560 'iconsInOptionTags' => 1,
561 )
562 ),
563 'non_exclude_fields' => array(
564 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.non_exclude_fields',
565 'config' => array(
566 'type' => 'select',
567 'special' => 'exclude',
568 'size' => '25',
569 'maxitems' => 1000,
570 'autoSizeMax' => 50,
571 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
572 )
573 ),
574 'explicit_allowdeny' => array(
575 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.explicit_allowdeny',
576 'config' => array(
577 'type' => 'select',
578 'special' => 'explicitValues',
579 'maxitems' => 1000,
580 'renderMode' => 'checkbox',
581 )
582 ),
583 'allowed_languages' => array(
584 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
585 'config' => array(
586 'type' => 'select',
587 'special' => 'languages',
588 'maxitems' => 1000,
589 'renderMode' => 'checkbox',
590 )
591 ),
592 'custom_options' => array(
593 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.custom_options',
594 'config' => array(
595 'type' => 'select',
596 'special' => 'custom',
597 'maxitems' => 1000,
598 'renderMode' => 'checkbox',
599 )
600 ),
601 'hidden' => array(
602 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
603 'config' => array(
604 'type' => 'check',
605 'default' => '0'
606 )
607 ),
608 'lockToDomain' => array(
609 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
610 'config' => array(
611 'type' => 'input',
612 'size' => '20',
613 'eval' => 'trim',
614 'max' => '50',
615 'checkbox' => '',
616 'softref' => 'substitute'
617 )
618 ),
619 'groupMods' => array(
620 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
621 'config' => array(
622 'type' => 'select',
623 'special' => 'modListGroup',
624 'size' => '5',
625 'autoSizeMax' => 50,
626 'maxitems' => 100,
627 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
628 'iconsInOptionTags' => 1,
629 )
630 ),
631 'inc_access_lists' => array(
632 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.inc_access_lists',
633 'config' => array(
634 'type' => 'check',
635 'default' => '0'
636 )
637 ),
638 'description' => array(
639 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
640 'config' => array(
641 'type' => 'text',
642 'rows' => 5,
643 'cols' => 30
644 )
645 ),
646 'TSconfig' => array(
647 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
648 'config' => array(
649 'type' => 'text',
650 'cols' => '40',
651 'rows' => '5',
652 'wizards' => array(
653 '_PADDING' => 4,
654 '0' => array(
655 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
656 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
657 'script' => 'wizard_tsconfig.php?mode=beuser',
658 'icon' => 'wizard_tsconfig.gif',
659 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
660 )
661 ),
662 'softref' => 'TSconfig'
663 ),
664 'defaultExtras' => 'fixed-font : enable-tab',
665 ),
666 'hide_in_lists' => array(
667 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.hide_in_lists',
668 'config' => array(
669 'type' => 'check',
670 'default' => 0
671 )
672 ),
673 'subgroup' => array(
674 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.subgroup',
675 'config' => array(
676 'type' => 'select',
677 'foreign_table' => 'be_groups',
678 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
679 'size' => '5',
680 'autoSizeMax' => 50,
681 'maxitems' => 20,
682 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
683 'iconsInOptionTags' => 1,
684 )
685 )
686 ),
687 'types' => array(
688 '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
689 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1,
690 --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,
691 --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,
692 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended'
693 ),
694 '1' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
695 --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,
696 --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,
697 --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,
698 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended'
699 )
700 )
701 );
702
703
704
705 /**
706 * 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
707 */
708 $TCA['sys_filemounts'] = array(
709 'ctrl' => $TCA['sys_filemounts']['ctrl'],
710 'interface' => array(
711 'showRecordFieldList' => 'title,hidden,path,base'
712 ),
713 'columns' => array(
714 'title' => array(
715 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.title',
716 'config' => array(
717 'type' => 'input',
718 'size' => '20',
719 'max' => '30',
720 'eval' => 'required,trim'
721 )
722 ),
723 'path' => array(
724 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.path',
725 'config' => array(
726 'type' => 'input',
727 'size' => '40',
728 'max' => '120',
729 'eval' => 'required,trim',
730 'softref' => 'substitute'
731 )
732 ),
733 'hidden' => array(
734 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
735 'config' => array(
736 'type' => 'check'
737 )
738 ),
739 'base' => array(
740 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base',
741 'config' => array(
742 'type' => 'radio',
743 'items' => array(
744 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_absolute', 0),
745 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_relative', 1)
746 ),
747 'default' => 0
748 )
749 )
750 ),
751 'types' => array(
752 '0' => array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
753 )
754 );
755
756
757
758
759 /**
760 * System languages - Defines possible languages used for translation of records in the system
761 */
762 $TCA['sys_language'] = array(
763 'ctrl' => $TCA['sys_language']['ctrl'],
764 'interface' => array(
765 'showRecordFieldList' => 'hidden,title'
766 ),
767 'columns' => array(
768 'title' => array(
769 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
770 'config' => array(
771 'type' => 'input',
772 'size' => '35',
773 'max' => '80',
774 'eval' => 'trim,required'
775 )
776 ),
777 'hidden' => array(
778 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
779 'exclude' => 1,
780 'config' => array(
781 'type' => 'check',
782 'default' => '0'
783 )
784 ),
785 'static_lang_isocode' => array(
786 'exclude' => 1,
787 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
788 'displayCond' => 'EXT:static_info_tables:LOADED:true',
789 'config' => array(
790 'type' => 'select',
791 'items' => array(
792 array('', 0),
793 ),
794 'foreign_table' => 'static_languages',
795 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
796 'size' => 1,
797 'minitems' => 0,
798 'maxitems' => 1,
799 )
800 ),
801 'flag' => array(
802 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
803 'config' => array(
804 'type' => 'select',
805 'items' => array(
806 array('', 0),
807 ),
808 'fileFolder' => 'typo3/gfx/flags/', // Only shows if "t3lib/" is in the PATH_site...
809 'fileFolder_extList' => 'png,jpg,jpeg,gif',
810 'fileFolder_recursions' => 0,
811 'selicon_cols' => 8,
812 'size' => 1,
813 'minitems' => 0,
814 'maxitems' => 1,
815 )
816 )
817 ),
818 'types' => array(
819 '1' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
820 )
821 );
822
823 ?>