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