81b5e33411ee9d0079c9146cc0a96557c1e30c3f
[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'
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' => '7'
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('config' => array('type' => 'passthrough'))
382 ),
383 'types' => array(
384 '0' => array('showitem' => 'username;;;;2-2-2, password, usergroup, lockToDomain, disableIPlock, admin;;;;5-5-5, realName;;;;3-3-3, email, lang, userMods;;;;4-4-4, allowed_languages, workspace_perms, options, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5'),
385 '1' => array('showitem' => 'username;;;;2-2-2, password, usergroup, disableIPlock, admin;;;;5-5-5, realName;;;;3-3-3, email, lang, options;;;;4-4-4, allowed_languages, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5')
386 ),
387 'palettes' => array(
388 '1' => array('showitem' => 'disable, starttime, endtime')
389 )
390 );
391
392
393
394 /**
395 * Backend usergroups - Much permission criterias are based on membership of backend groups.
396 */
397 $TCA['be_groups'] = array(
398 'ctrl' => $TCA['be_groups']['ctrl'],
399 'interface' => array(
400 'showRecordFieldList' => 'title,db_mountpoints,file_mountpoints,inc_access_lists,tables_select,tables_modify,pagetypes_select,non_exclude_fields,groupMods,lockToDomain,description'
401 ),
402 'columns' => array(
403 'title' => array(
404 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.title',
405 'config' => array(
406 'type' => 'input',
407 'size' => '25',
408 'max' => '50',
409 'eval' => 'trim,required'
410 )
411 ),
412 'db_mountpoints' => array(
413 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
414 'config' => array(
415 'type' => 'group',
416 'internal_type' => 'db',
417 'allowed' => 'pages',
418 'size' => '3',
419 'maxitems' => 20,
420 'autoSizeMax' => 10,
421 'show_thumbs' => '1'
422 )
423 ),
424 'file_mountpoints' => array(
425 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
426 'config' => array(
427 'type' => 'select',
428 'foreign_table' => 'sys_filemounts',
429 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
430 'size' => '3',
431 'maxitems' => 20,
432 'autoSizeMax' => 10,
433 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
434 'iconsInOptionTags' => 1,
435 'wizards' => array(
436 '_PADDING' => 1,
437 '_VERTICAL' => 1,
438 'edit' => array(
439 'type' => 'popup',
440 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title',
441 'script' => 'wizard_edit.php',
442 'popup_onlyOpenIfSelected' => 1,
443 'icon' => 'edit2.gif',
444 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
445 ),
446 'add' => array(
447 'type' => 'script',
448 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title',
449 'icon' => 'add.gif',
450 'params' => array(
451 'table' => 'sys_filemounts',
452 'pid' => '0',
453 'setValue' => 'prepend'
454 ),
455 'script' => 'wizard_add.php',
456 ),
457 'list' => array(
458 'type' => 'script',
459 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title',
460 'icon' => 'list.gif',
461 'params' => array(
462 'table' => 'sys_filemounts',
463 'pid' => '0',
464 ),
465 'script' => 'wizard_list.php',
466 )
467 )
468 )
469 ),
470 'workspace_perms' => array(
471 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms',
472 'config' => array(
473 'type' => 'check',
474 'items' => array(
475 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0),
476 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0),
477 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_custom', 0),
478 ),
479 'default' => 0
480 )
481 ),
482 'pagetypes_select' => array(
483 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.pagetypes_select',
484 'config' => array(
485 'type' => 'select',
486 'special' => 'pagetypes',
487 'size' => '5',
488 'autoSizeMax' => 50,
489 'maxitems' => 20,
490 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
491 'iconsInOptionTags' => 1,
492 )
493 ),
494 'tables_modify' => array(
495 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_modify',
496 'config' => array(
497 'type' => 'select',
498 'special' => 'tables',
499 'size' => '5',
500 'autoSizeMax' => 50,
501 'maxitems' => 100,
502 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
503 'iconsInOptionTags' => 1,
504 )
505 ),
506 'tables_select' => array(
507 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_select',
508 'config' => array(
509 'type' => 'select',
510 'special' => 'tables',
511 'size' => '5',
512 'autoSizeMax' => 50,
513 'maxitems' => 100,
514 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
515 'iconsInOptionTags' => 1,
516 )
517 ),
518 'non_exclude_fields' => array(
519 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.non_exclude_fields',
520 'config' => array(
521 'type' => 'select',
522 'special' => 'exclude',
523 'size' => '25',
524 'maxitems' => 1000,
525 'autoSizeMax' => 50,
526 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
527 )
528 ),
529 'explicit_allowdeny' => array(
530 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.explicit_allowdeny',
531 'config' => array(
532 'type' => 'select',
533 'special' => 'explicitValues',
534 'maxitems' => 1000,
535 'renderMode' => 'checkbox',
536 )
537 ),
538 'allowed_languages' => array(
539 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
540 'config' => array(
541 'type' => 'select',
542 'special' => 'languages',
543 'maxitems' => 1000,
544 'renderMode' => 'checkbox',
545 )
546 ),
547 'custom_options' => array(
548 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.custom_options',
549 'config' => array(
550 'type' => 'select',
551 'special' => 'custom',
552 'maxitems' => 1000,
553 'renderMode' => 'checkbox',
554 )
555 ),
556 'hidden' => array(
557 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
558 'config' => array(
559 'type' => 'check',
560 'default' => '0'
561 )
562 ),
563 'lockToDomain' => array(
564 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
565 'config' => array(
566 'type' => 'input',
567 'size' => '20',
568 'eval' => 'trim',
569 'max' => '50',
570 'checkbox' => '',
571 'softref' => 'substitute'
572 )
573 ),
574 'groupMods' => array(
575 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
576 'config' => array(
577 'type' => 'select',
578 'special' => 'modListGroup',
579 'size' => '5',
580 'autoSizeMax' => 50,
581 'maxitems' => 100,
582 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
583 'iconsInOptionTags' => 1,
584 )
585 ),
586 'inc_access_lists' => array(
587 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.inc_access_lists',
588 'config' => array(
589 'type' => 'check',
590 'default' => '0'
591 )
592 ),
593 'description' => array(
594 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
595 'config' => array(
596 'type' => 'text',
597 'rows' => 5,
598 'cols' => 30
599 )
600 ),
601 'TSconfig' => array(
602 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
603 'config' => array(
604 'type' => 'text',
605 'cols' => '40',
606 'rows' => '5',
607 'wizards' => array(
608 '_PADDING' => 4,
609 '0' => array(
610 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
611 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
612 'script' => 'wizard_tsconfig.php?mode=beuser',
613 'icon' => 'wizard_tsconfig.gif',
614 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
615 )
616 ),
617 'softref' => 'TSconfig'
618 ),
619 'defaultExtras' => 'fixed-font : enable-tab',
620 ),
621 'hide_in_lists' => array(
622 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.hide_in_lists',
623 'config' => array(
624 'type' => 'check',
625 'default' => 0
626 )
627 ),
628 'subgroup' => array(
629 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.subgroup',
630 'config' => array(
631 'type' => 'select',
632 'foreign_table' => 'be_groups',
633 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
634 'size' => '5',
635 'autoSizeMax' => 50,
636 'maxitems' => 20,
637 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
638 'iconsInOptionTags' => 1,
639 )
640 )
641 ),
642 'types' => array(
643 '0' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2, lockToDomain, --div--, inc_access_lists;;;;3-3-3, db_mountpoints;;;;4-4-4,file_mountpoints,workspace_perms,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5'),
644 '1' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2, lockToDomain, --div--, inc_access_lists;;;;3-3-3, groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny, allowed_languages, custom_options, --div--, db_mountpoints;;;;4-4-4,file_mountpoints,workspace_perms,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5')
645 )
646 );
647
648
649
650 /**
651 * 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
652 */
653 $TCA['sys_filemounts'] = array(
654 'ctrl' => $TCA['sys_filemounts']['ctrl'],
655 'interface' => array(
656 'showRecordFieldList' => 'title,hidden,path,base'
657 ),
658 'columns' => array(
659 'title' => array(
660 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.title',
661 'config' => array(
662 'type' => 'input',
663 'size' => '20',
664 'max' => '30',
665 'eval' => 'required,trim'
666 )
667 ),
668 'path' => array(
669 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.path',
670 'config' => array(
671 'type' => 'input',
672 'size' => '40',
673 'max' => '120',
674 'eval' => 'required,trim',
675 'softref' => 'substitute'
676 )
677 ),
678 'hidden' => array(
679 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
680 'config' => array(
681 'type' => 'check'
682 )
683 ),
684 'base' => array(
685 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base',
686 'config' => array(
687 'type' => 'radio',
688 'items' => array(
689 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_absolute', 0),
690 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_relative', 1)
691 ),
692 'default' => 0
693 )
694 )
695 ),
696 'types' => array(
697 '0' => array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
698 )
699 );
700
701
702
703 /**
704 * System workspaces - Defines the offline workspaces available to users in TYPO3.
705 */
706 $TCA['sys_workspace'] = array(
707 'ctrl' => $TCA['sys_workspace']['ctrl'],
708 'columns' => array(
709 'title' => array(
710 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title',
711 'config' => array(
712 'type' => 'input',
713 'size' => '20',
714 'max' => '30',
715 'eval' => 'required,trim,unique'
716 )
717 ),
718 'description' => array(
719 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
720 'config' => array(
721 'type' => 'text',
722 'rows' => 5,
723 'cols' => 30
724 )
725 ),
726 'adminusers' => array(
727 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.adminusers',
728 'config' => array(
729 'type' => 'group',
730 'internal_type' => 'db',
731 'allowed' => 'be_users',
732 'size' => '3',
733 'maxitems' => '10',
734 'autoSizeMax' => 10,
735 'show_thumbs' => '1'
736 )
737 ),
738 'members' => array(
739 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.members',
740 'config' => array(
741 'type' => 'group',
742 'internal_type' => 'db',
743 'allowed' => 'be_users,be_groups',
744 'prepend_tname' => 1,
745 'size' => '3',
746 'maxitems' => '100',
747 'autoSizeMax' => 10,
748 'show_thumbs' => '1'
749 )
750 ),
751 'reviewers' => array(
752 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.reviewers',
753 'config' => array(
754 'type' => 'group',
755 'internal_type' => 'db',
756 'allowed' => 'be_users,be_groups',
757 'prepend_tname' => 1,
758 'size' => '3',
759 'maxitems' => '100',
760 'autoSizeMax' => 10,
761 'show_thumbs' => '1'
762 )
763 ),
764 'db_mountpoints' => array(
765 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
766 'config' => array(
767 'type' => 'group',
768 'internal_type' => 'db',
769 'allowed' => 'pages',
770 'size' => '3',
771 'maxitems' => '10',
772 'autoSizeMax' => 10,
773 'show_thumbs' => '1'
774 )
775 ),
776 'file_mountpoints' => array(
777 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
778 'config' => array(
779 'type' => 'select',
780 'foreign_table' => 'sys_filemounts',
781 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
782 'size' => '3',
783 'maxitems' => '10',
784 'autoSizeMax' => 10,
785 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
786 'iconsInOptionTags' => 1,
787 )
788 ),
789 'publish_time' => array(
790 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_time',
791 'config' => array(
792 'type' => 'input',
793 'size' => '8',
794 'max' => '20',
795 'eval' => 'datetime',
796 'default' => '0',
797 'checkbox' => '0'
798 )
799 ),
800 'unpublish_time' => array(
801 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.unpublish_time',
802 'config' => array(
803 'type' => 'input',
804 'size' => '8',
805 'max' => '20',
806 'eval' => 'datetime',
807 'checkbox' => '0',
808 'default' => '0',
809 'range' => array(
810 'upper' => mktime(0,0,0,12,31,2020),
811 )
812 )
813 ),
814 'freeze' => array(
815 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.freeze',
816 'config' => array(
817 'type' => 'check',
818 'default' => '0'
819 )
820 ),
821 'live_edit' => array(
822 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.live_edit',
823 'config' => array(
824 'type' => 'check',
825 'default' => '0'
826 )
827 ),
828 'review_stage_edit' => array(
829 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.review_stage_edit',
830 'config' => array(
831 'type' => 'check',
832 'default' => '0'
833 )
834 ),
835 'disable_autocreate' => array(
836 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.disable_autocreate',
837 'config' => array(
838 'type' => 'check',
839 'default' => '0'
840 )
841 ),
842 'swap_modes' => array(
843 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.swap_modes',
844 'config' => array(
845 'type' => 'select',
846 'items' => array(
847 array('', 0),
848 array('Swap-Into-Workspace on Auto-publish', 1),
849 array('Disable Swap-Into-Workspace', 2)
850 ),
851 )
852 ),
853 'vtypes' => array(
854 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.vtypes',
855 'config' => array(
856 'type' => 'check',
857 'items' => array(
858 array('Element', 0),
859 array('Page', 0),
860 array('Branch', 0)
861 ),
862 )
863 ),
864 'publish_access' => array(
865 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_access',
866 'config' => array(
867 'type' => 'check',
868 'items' => array(
869 array('Publish only content in publish stage', 0),
870 array('Only workspace owner can publish', 0),
871 ),
872 )
873 ),
874 'stagechg_notification' => array(
875 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.stagechg_notification',
876 'config' => array(
877 'type' => 'select',
878 'items' => array(
879 array('', 0),
880 array('Notify users on next stage only', 1),
881 array('Notify all users on any change', 10)
882 ),
883 )
884 ),
885 ),
886 'types' => array(
887 '0' => array('showitem' => 'title,description,--div--;Users,adminusers,members,reviewers,stagechg_notification,--div--;Mountpoints,db_mountpoints,file_mountpoints,--div--;Publishing,publish_time,unpublish_time,--div--;Other,freeze,live_edit,review_stage_edit,disable_autocreate,swap_modes,vtypes,publish_access')
888 )
889 );
890
891
892
893 /**
894 * System languages - Defines possible languages used for translation of records in the system
895 */
896 $TCA['sys_language'] = array(
897 'ctrl' => $TCA['sys_language']['ctrl'],
898 'interface' => array(
899 'showRecordFieldList' => 'hidden,title'
900 ),
901 'columns' => array(
902 'title' => array(
903 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
904 'config' => array(
905 'type' => 'input',
906 'size' => '35',
907 'max' => '80',
908 'eval' => 'trim,required'
909 )
910 ),
911 'hidden' => array(
912 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
913 'exclude' => 1,
914 'config' => array(
915 'type' => 'check',
916 'default' => '0'
917 )
918 ),
919 'static_lang_isocode' => array(
920 'exclude' => 1,
921 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
922 'displayCond' => 'EXT:static_info_tables:LOADED:true',
923 'config' => array(
924 'type' => 'select',
925 'items' => array(
926 array('', 0),
927 ),
928 'foreign_table' => 'static_languages',
929 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
930 'size' => 1,
931 'minitems' => 0,
932 'maxitems' => 1,
933 )
934 ),
935 'flag' => array(
936 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
937 'config' => array(
938 'type' => 'select',
939 'items' => array(
940 array('', 0),
941 ),
942 'fileFolder' => 'typo3/gfx/flags/', // Only shows if "t3lib/" is in the PATH_site...
943 'fileFolder_extList' => 'png,jpg,jpeg,gif',
944 'fileFolder_recursions' => 0,
945 'selicon_cols' => 8,
946 'size' => 1,
947 'minitems' => 0,
948 'maxitems' => 1,
949 )
950 )
951 ),
952 'types' => array(
953 '1' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
954 )
955 );
956
957 ?>