ee93e3a848f9da306675affebe12f8f024709c53
[Packages/TYPO3.CMS.git] / t3lib / stddb / tbl_be.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Contains the dynamic configuation of the fields in the core tables of TYPO3: be_users, be_groups, sys_filemounts and sys_workspace
29 *
30 * $Id$
31 * Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
32 *
33 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
34 * @see tables.php, tables.sql
35 */
36
37
38
39
40
41
42 /**
43 * Backend users - Those who login into the TYPO3 administration backend
44 */
45 $TCA['be_users'] = array(
46 'ctrl' => $TCA['be_users']['ctrl'],
47 'interface' => array(
48 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
49 ),
50 'columns' => array(
51 'username' => array(
52 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.username',
53 'config' => array(
54 'type' => 'input',
55 'size' => '20',
56 'max' => '50',
57 'eval' => 'nospace,lower,unique,required'
58 )
59 ),
60 'password' => array(
61 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.password',
62 'config' => array(
63 'type' => 'input',
64 'size' => '20',
65 'max' => '40',
66 'eval' => 'required,md5,password'
67 )
68 ),
69 'usergroup' => array(
70 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup',
71 'config' => array(
72 'type' => 'select',
73 'foreign_table' => 'be_groups',
74 'foreign_table_where' => 'ORDER BY be_groups.title',
75 'size' => '5',
76 'maxitems' => '20',
77 # 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
78 'iconsInOptionTags' => 1,
79 'wizards' => array(
80 '_PADDING' => 1,
81 '_VERTICAL' => 1,
82 'edit' => array(
83 'type' => 'popup',
84 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_edit_title',
85 'script' => 'wizard_edit.php',
86 'popup_onlyOpenIfSelected' => 1,
87 'icon' => 'edit2.gif',
88 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
89 ),
90 'add' => array(
91 'type' => 'script',
92 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_add_title',
93 'icon' => 'add.gif',
94 'params' => array(
95 'table' => 'be_groups',
96 'pid' => '0',
97 'setValue' => 'prepend'
98 ),
99 'script' => 'wizard_add.php',
100 ),
101 'list' => array(
102 'type' => 'script',
103 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_list_title',
104 'icon' => 'list.gif',
105 'params' => array(
106 'table' => 'be_groups',
107 'pid' => '0',
108 ),
109 'script' => 'wizard_list.php',
110 )
111 )
112 )
113 ),
114 'lockToDomain' => array(
115 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
116 'config' => array(
117 'type' => 'input',
118 'size' => '20',
119 'eval' => 'trim',
120 'max' => '50',
121 'checkbox' => '',
122 'softref' => 'substitute'
123 )
124 ),
125 'db_mountpoints' => array(
126 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options_db_mounts',
127 'config' => array(
128 'type' => 'group',
129 'internal_type' => 'db',
130 'allowed' => 'pages',
131 'size' => '3',
132 'maxitems' => '10',
133 'autoSizeMax' => 10,
134 'show_thumbs' => '1'
135 )
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 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
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('Galician', 'ga'),
308 array('Georgian', 'ge'),
309 array('German', 'de'),
310 array('Greek', 'gr'),
311 array('Greenlandic', 'gl'),
312 array('Hebrew', 'he'),
313 array('Hindi', 'hi'),
314 array('Hungarian', 'hu'),
315 array('Icelandic', 'is'),
316 array('Italian', 'it'),
317 array('Japanese', 'jp'),
318 array('Korean', 'kr'),
319 array('Latvian', 'lv'),
320 array('Lithuanian', 'lt'),
321 array('Malay', 'my'),
322 array('Norwegian', 'no'),
323 array('Persian', 'fa'),
324 array('Polish', 'pl'),
325 array('Portuguese', 'pt'),
326 array('Romanian', 'ro'),
327 array('Russian', 'ru'),
328 array('Serbian', 'sr'),
329 array('Slovak', 'sk'),
330 array('Slovenian', 'si'),
331 array('Spanish', 'es'),
332 array('Swedish', 'se'),
333 array('Thai', 'th'),
334 array('Turkish', 'tr'),
335 array('Ukrainian', 'ua'),
336 array('Vietnamese', 'vn'),
337 )
338 )
339 ),
340 'userMods' => array(
341 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
342 'config' => array(
343 'type' => 'select',
344 'special' => 'modListUser',
345 'size' => '5',
346 'autoSizeMax' => 50,
347 'maxitems' => '100',
348 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
349 'iconsInOptionTags' => 1,
350 )
351 ),
352 'allowed_languages' => array(
353 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
354 'config' => array(
355 'type' => 'select',
356 'special' => 'languages',
357 'maxitems' => '1000',
358 'renderMode' => 'checkbox',
359 )
360 ),
361 'TSconfig' => array(
362 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
363 'config' => array(
364 'type' => 'text',
365 'cols' => '40',
366 'rows' => '5',
367 'wizards' => array(
368 '_PADDING' => 4,
369 '0' => array(
370 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
371 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
372 'script' => 'wizard_tsconfig.php?mode=beuser',
373 'icon' => 'wizard_tsconfig.gif',
374 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
375 )
376 ),
377 'softref' => 'TSconfig'
378 ),
379 'defaultExtras' => 'fixed-font : enable-tab',
380 ),
381 'createdByAction' => array(
382 'config' => array(
383 'type' => 'passthrough'
384 )
385 ),
386 'lastlogin' => array(
387 'exclude' => 1,
388 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
389 'config' => array(
390 'type' => 'input',
391 'readOnly' => '1',
392 'size' => '8',
393 'eval' => 'date'
394 )
395 )
396 ),
397 'types' => array(
398 '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
399 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, admin;;;;1-1-1, userMods;;;;2-2-2, allowed_languages,
400 --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,
401 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
402 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
403 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
404 ),
405 '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
406 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, admin;;;;1-1-1, allowed_languages;;;;2-2-2,
407 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.mounts_and_workspaces, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, fileoper_perms,
408 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2,
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 /**
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 )
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 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
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 )
565 ),
566 'explicit_allowdeny' => array(
567 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.explicit_allowdeny',
568 'config' => array(
569 'type' => 'select',
570 'special' => 'explicitValues',
571 'maxitems' => 1000,
572 'renderMode' => 'checkbox',
573 )
574 ),
575 'allowed_languages' => array(
576 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
577 'config' => array(
578 'type' => 'select',
579 'special' => 'languages',
580 'maxitems' => 1000,
581 'renderMode' => 'checkbox',
582 )
583 ),
584 'custom_options' => array(
585 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.custom_options',
586 'config' => array(
587 'type' => 'select',
588 'special' => 'custom',
589 'maxitems' => 1000,
590 'renderMode' => 'checkbox',
591 )
592 ),
593 'hidden' => array(
594 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
595 'config' => array(
596 'type' => 'check',
597 'default' => '0'
598 )
599 ),
600 'lockToDomain' => array(
601 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
602 'config' => array(
603 'type' => 'input',
604 'size' => '20',
605 'eval' => 'trim',
606 'max' => '50',
607 'checkbox' => '',
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 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
675 'iconsInOptionTags' => 1,
676 )
677 )
678 ),
679 'types' => array(
680 '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
681 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1,
682 --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,
683 --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,
684 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended'
685 ),
686 '1' => 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, groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny , allowed_languages;;;;2-2-2, custom_options;;;;3-3-3,
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 )
693 );
694
695
696
697 /**
698 * 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
699 */
700 $TCA['sys_filemounts'] = array(
701 'ctrl' => $TCA['sys_filemounts']['ctrl'],
702 'interface' => array(
703 'showRecordFieldList' => 'title,hidden,path,base'
704 ),
705 'columns' => array(
706 'title' => array(
707 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.title',
708 'config' => array(
709 'type' => 'input',
710 'size' => '20',
711 'max' => '30',
712 'eval' => 'required,trim'
713 )
714 ),
715 'path' => array(
716 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.path',
717 'config' => array(
718 'type' => 'input',
719 'size' => '40',
720 'max' => '120',
721 'eval' => 'required,trim',
722 'softref' => 'substitute'
723 )
724 ),
725 'hidden' => array(
726 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
727 'config' => array(
728 'type' => 'check'
729 )
730 ),
731 'base' => array(
732 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base',
733 'config' => array(
734 'type' => 'radio',
735 'items' => array(
736 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_absolute', 0),
737 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_relative', 1)
738 ),
739 'default' => 0
740 )
741 )
742 ),
743 'types' => array(
744 '0' => array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
745 )
746 );
747
748
749
750 /**
751 * System workspaces - Defines the offline workspaces available to users in TYPO3.
752 */
753 $TCA['sys_workspace'] = array(
754 'ctrl' => $TCA['sys_workspace']['ctrl'],
755 'columns' => array(
756 'title' => array(
757 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title',
758 'config' => array(
759 'type' => 'input',
760 'size' => '20',
761 'max' => '30',
762 'eval' => 'required,trim,unique'
763 )
764 ),
765 'description' => array(
766 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
767 'config' => array(
768 'type' => 'text',
769 'rows' => 5,
770 'cols' => 30
771 )
772 ),
773 'adminusers' => array(
774 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.adminusers',
775 'config' => array(
776 'type' => 'group',
777 'internal_type' => 'db',
778 'allowed' => 'be_users',
779 'size' => '3',
780 'maxitems' => '10',
781 'autoSizeMax' => 10,
782 'show_thumbs' => '1'
783 )
784 ),
785 'members' => array(
786 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.members',
787 'config' => array(
788 'type' => 'group',
789 'internal_type' => 'db',
790 'allowed' => 'be_users,be_groups',
791 'prepend_tname' => 1,
792 'size' => '3',
793 'maxitems' => '100',
794 'autoSizeMax' => 10,
795 'show_thumbs' => '1'
796 )
797 ),
798 'reviewers' => array(
799 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.reviewers',
800 'config' => array(
801 'type' => 'group',
802 'internal_type' => 'db',
803 'allowed' => 'be_users,be_groups',
804 'prepend_tname' => 1,
805 'size' => '3',
806 'maxitems' => '100',
807 'autoSizeMax' => 10,
808 'show_thumbs' => '1'
809 )
810 ),
811 'db_mountpoints' => array(
812 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
813 'config' => array(
814 'type' => 'group',
815 'internal_type' => 'db',
816 'allowed' => 'pages',
817 'size' => '3',
818 'maxitems' => '10',
819 'autoSizeMax' => 10,
820 'show_thumbs' => '1'
821 )
822 ),
823 'file_mountpoints' => array(
824 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
825 'config' => array(
826 'type' => 'select',
827 'foreign_table' => 'sys_filemounts',
828 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
829 'size' => '3',
830 'maxitems' => '10',
831 'autoSizeMax' => 10,
832 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
833 'iconsInOptionTags' => 1,
834 )
835 ),
836 'publish_time' => array(
837 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_time',
838 'config' => array(
839 'type' => 'input',
840 'size' => '8',
841 'max' => '20',
842 'eval' => 'datetime',
843 'default' => '0',
844 'checkbox' => '0'
845 )
846 ),
847 'unpublish_time' => array(
848 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.unpublish_time',
849 'config' => array(
850 'type' => 'input',
851 'size' => '8',
852 'max' => '20',
853 'eval' => 'datetime',
854 'checkbox' => '0',
855 'default' => '0',
856 'range' => array(
857 'upper' => mktime(0,0,0,12,31,2020),
858 )
859 )
860 ),
861 'freeze' => array(
862 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.freeze',
863 'config' => array(
864 'type' => 'check',
865 'default' => '0'
866 )
867 ),
868 'live_edit' => array(
869 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.live_edit',
870 'config' => array(
871 'type' => 'check',
872 'default' => '0'
873 )
874 ),
875 'review_stage_edit' => array(
876 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.review_stage_edit',
877 'config' => array(
878 'type' => 'check',
879 'default' => '0'
880 )
881 ),
882 'disable_autocreate' => array(
883 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.disable_autocreate',
884 'config' => array(
885 'type' => 'check',
886 'default' => '0'
887 )
888 ),
889 'swap_modes' => array(
890 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.swap_modes',
891 'config' => array(
892 'type' => 'select',
893 'items' => array(
894 array('', 0),
895 array('Swap-Into-Workspace on Auto-publish', 1),
896 array('Disable Swap-Into-Workspace', 2)
897 ),
898 )
899 ),
900 'vtypes' => array(
901 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.vtypes',
902 'config' => array(
903 'type' => 'check',
904 'items' => array(
905 array('Element', 0),
906 array('Page', 0),
907 array('Branch', 0)
908 ),
909 )
910 ),
911 'publish_access' => array(
912 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_access',
913 'config' => array(
914 'type' => 'check',
915 'items' => array(
916 array('Publish only content in publish stage', 0),
917 array('Only workspace owner can publish', 0),
918 ),
919 )
920 ),
921 'stagechg_notification' => array(
922 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.stagechg_notification',
923 'config' => array(
924 'type' => 'select',
925 'items' => array(
926 array('', 0),
927 array('Notify users on next stage only', 1),
928 array('Notify all users on any change', 10)
929 ),
930 )
931 ),
932 ),
933 'types' => array(
934 '0' => array('showitem' => 'title,description,
935 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.users,adminusers,members,reviewers,stagechg_notification,
936 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
937 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
938 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.other,freeze,live_edit,review_stage_edit,disable_autocreate,swap_modes,vtypes,publish_access'
939 )
940 )
941 );
942
943
944
945 /**
946 * System languages - Defines possible languages used for translation of records in the system
947 */
948 $TCA['sys_language'] = array(
949 'ctrl' => $TCA['sys_language']['ctrl'],
950 'interface' => array(
951 'showRecordFieldList' => 'hidden,title'
952 ),
953 'columns' => array(
954 'title' => array(
955 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
956 'config' => array(
957 'type' => 'input',
958 'size' => '35',
959 'max' => '80',
960 'eval' => 'trim,required'
961 )
962 ),
963 'hidden' => array(
964 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
965 'exclude' => 1,
966 'config' => array(
967 'type' => 'check',
968 'default' => '0'
969 )
970 ),
971 'static_lang_isocode' => array(
972 'exclude' => 1,
973 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
974 'displayCond' => 'EXT:static_info_tables:LOADED:true',
975 'config' => array(
976 'type' => 'select',
977 'items' => array(
978 array('', 0),
979 ),
980 'foreign_table' => 'static_languages',
981 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
982 'size' => 1,
983 'minitems' => 0,
984 'maxitems' => 1,
985 )
986 ),
987 'flag' => array(
988 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
989 'config' => array(
990 'type' => 'select',
991 'items' => array(
992 array('', 0),
993 ),
994 'fileFolder' => 'typo3/gfx/flags/', // Only shows if "t3lib/" is in the PATH_site...
995 'fileFolder_extList' => 'png,jpg,jpeg,gif',
996 'fileFolder_recursions' => 0,
997 'selicon_cols' => 8,
998 'size' => 1,
999 'minitems' => 0,
1000 'maxitems' => 1,
1001 )
1002 )
1003 ),
1004 'types' => array(
1005 '1' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
1006 )
1007 );
1008
1009 ?>