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