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