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