*** empty log message ***
[Packages/TYPO3.CMS.git] / t3lib / stddb / tbl_be.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2005 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 and sys_filemounts
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' => 'Username:',
53 'config' => Array (
54 'type' => 'input',
55 'size' => '20',
56 'max' => '20',
57 'eval' => 'nospace,lower,unique,required'
58 )
59 ),
60 'password' => Array (
61 'label' => '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' => 'Group:',
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' => 'Edit usergroup',
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' => 'Create new group',
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' => 'List groups',
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' => 'Lock to domain:',
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' => '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' => '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' => 'Edit filemount',
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' => 'Create new filemount',
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' => 'List filemounts',
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' => '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' => 'Name:',
195 'config' => Array (
196 'type' => 'input',
197 'size' => '20',
198 'eval' => 'trim',
199 'max' => '80'
200 )
201 ),
202 'disable' => Array (
203 'label' => 'Disable:',
204 'config' => Array (
205 'type' => 'check'
206 )
207 ),
208 'disableIPlock' => Array (
209 'label' => 'Disable IP lock for user:',
210 'config' => Array (
211 'type' => 'check'
212 )
213 ),
214 'admin' => Array (
215 'label' => 'Admin(!):',
216 'config' => Array (
217 'type' => 'check',
218 'default' => '0'
219 )
220 ),
221 'options' => Array (
222 'label' => 'Mount from groups:',
223 'config' => Array (
224 'type' => 'check',
225 'items' => Array (
226 Array('DB Mounts', 0),
227 Array('File Mounts', 0)
228 ),
229 'default' => '3'
230 )
231 ),
232 'fileoper_perms' => Array (
233 'label' => 'Fileoperation permissions:',
234 'config' => Array (
235 'type' => 'check',
236 'items' => Array (
237 Array('Files: Upload,Copy,Move,Delete,Rename,New,Edit', 0),
238 Array('Files: Unzip', 0),
239 Array('Directory: Move,Delete,Rename,New', 0),
240 Array('Directory: Copy', 0),
241 Array('Directory: Delete recursively (rm -Rf)', 0)
242 ),
243 'default' => '7'
244 )
245 ),
246 'workspace_perms' => Array (
247 'label' => 'Workspace permissions:',
248 'config' => Array (
249 'type' => 'check',
250 'items' => Array (
251 Array('Edit Live (Online)', 0),
252 Array('Edit Draft (Offline)', 0),
253 Array('Create new workspace projects', 0),
254 ),
255 'default' => 3
256 )
257 ),
258 'starttime' => Array (
259 'label' => 'Start:',
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' => 'Stop:',
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' => 'Default Language:',
285 'config' => Array (
286 'type' => 'select',
287 'items' => Array (
288 Array('English', ''),
289 Array('Arabic', 'ar'),
290 Array('Bahasa Malaysia', 'my'),
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('Estonian', 'et'),
303 Array('Esperanto', 'eo'),
304 Array('Finnish', 'fi'),
305 Array('French', 'fr'),
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('Korean', 'kr'),
316 Array('Latvian', 'lv'),
317 Array('Lithuanian', 'lt'),
318 Array('Norwegian', 'no'),
319 Array('Polish', 'pl'),
320 Array('Portuguese', 'pt'),
321 Array('Romanian', 'ro'),
322 Array('Russian', 'ru'),
323 Array('Slovak', 'sk'),
324 Array('Slovenian', 'si'),
325 Array('Spanish', 'es'),
326 Array('Swedish', 'se'),
327 Array('Thai', 'th'),
328 Array('Turkish', 'tr'),
329 Array('Ukrainian', 'ua'),
330 Array('Vietnamese', 'vn'),
331 )
332 )
333 ),
334 'userMods' => Array (
335 'label' => 'Modules:',
336 'config' => Array (
337 'type' => 'select',
338 'special' => 'modListUser',
339 'size' => '5',
340 'autoSizeMax' => 50,
341 'maxitems' => '15',
342 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
343 'iconsInOptionTags' => 1,
344 )
345 ),
346 'allowed_languages' => Array (
347 'label' => 'Limit to languages:',
348 'config' => Array (
349 'type' => 'select',
350 'special' => 'languages',
351 'maxitems' => '1000',
352 'renderMode' => 'checkbox',
353 )
354 ),
355 'TSconfig' => Array (
356 'label' => 'TSconfig:',
357 'config' => Array (
358 'type' => 'text',
359 'cols' => '40',
360 'rows' => '5',
361 'wizards' => Array(
362 '_PADDING' => 4,
363 '0' => Array(
364 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
365 'title' => 'TSconfig QuickReference',
366 'script' => 'wizard_tsconfig.php?mode=beuser',
367 'icon' => 'wizard_tsconfig.gif',
368 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
369 )
370 ),
371 'softref' => 'TSconfig'
372 )
373 ),
374 'createdByAction' => Array('config'=>array('type'=>'passthrough'))
375 ),
376 'types' => Array (
377 '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'),
378 '1' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, disableIPlock, admin;;;;5-5-5, realName;;;;3-3-3, email, lang, options;;;;4-4-4, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5')
379 ),
380 'palettes' => Array (
381 '1' => Array('showitem' => 'disable, starttime, endtime')
382 )
383 );
384
385
386
387 /**
388 * Backend usergroups - Much permission criterias are based on membership of backend groups.
389 */
390 $TCA['be_groups'] = Array (
391 'ctrl' => $TCA['be_groups']['ctrl'],
392 'interface' => Array (
393 'showRecordFieldList' => 'title,db_mountpoints,file_mountpoints,inc_access_lists,tables_select,tables_modify,pagetypes_select,non_exclude_fields,groupMods,lockToDomain,description'
394 ),
395 'columns' => Array (
396 'title' => Array (
397 'label' => 'Grouptitle:',
398 'config' => Array (
399 'type' => 'input',
400 'size' => '25',
401 'max' => '20',
402 'eval' => 'trim,required'
403 )
404 ),
405 'db_mountpoints' => Array (
406 'label' => 'DB Mounts:',
407 'config' => Array (
408 'type' => 'group',
409 'internal_type' => 'db',
410 'allowed' => 'pages',
411 'size' => '3',
412 'maxitems' => '10',
413 'autoSizeMax' => 10,
414 'show_thumbs' => '1'
415 )
416 ),
417 'file_mountpoints' => Array (
418 'label' => 'File Mounts:',
419 'config' => Array (
420 'type' => 'select',
421 'foreign_table' => 'sys_filemounts',
422 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
423 'size' => '3',
424 'maxitems' => '10',
425 'autoSizeMax' => 10,
426 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
427 'iconsInOptionTags' => 1,
428 'wizards' => Array(
429 '_PADDING' => 1,
430 '_VERTICAL' => 1,
431 'edit' => Array(
432 'type' => 'popup',
433 'title' => 'Edit filemount',
434 'script' => 'wizard_edit.php',
435 'popup_onlyOpenIfSelected' => 1,
436 'icon' => 'edit2.gif',
437 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
438 ),
439 'add' => Array(
440 'type' => 'script',
441 'title' => 'Create new filemount',
442 'icon' => 'add.gif',
443 'params' => Array(
444 'table'=>'sys_filemounts',
445 'pid' => '0',
446 'setValue' => 'prepend'
447 ),
448 'script' => 'wizard_add.php',
449 ),
450 'list' => Array(
451 'type' => 'script',
452 'title' => 'List filemounts',
453 'icon' => 'list.gif',
454 'params' => Array(
455 'table'=>'sys_filemounts',
456 'pid' => '0',
457 ),
458 'script' => 'wizard_list.php',
459 )
460 )
461 )
462 ),
463 'workspace_perms' => Array (
464 'label' => 'Workspace permissions:',
465 'config' => Array (
466 'type' => 'check',
467 'items' => Array (
468 Array('Edit Live (Online)', 0),
469 Array('Edit Draft (Offline)', 0),
470 Array('Create new workspace projects', 0),
471 ),
472 'default' => 0
473 )
474 ),
475 'pagetypes_select' => Array (
476 'label' => 'Page types:',
477 'config' => Array (
478 'type' => 'select',
479 'special' => 'pagetypes',
480 'size' => '5',
481 'autoSizeMax' => 50,
482 'maxitems' => 20,
483 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
484 'iconsInOptionTags' => 1,
485 )
486 ),
487 'tables_modify' => Array (
488 'label' => 'Tables (modify):',
489 'config' => Array (
490 'type' => 'select',
491 'special' => 'tables',
492 'size' => '5',
493 'autoSizeMax' => 50,
494 'maxitems' => 20,
495 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
496 'iconsInOptionTags' => 1,
497 )
498 ),
499 'tables_select' => Array (
500 'label' => 'Tables (listing):',
501 'config' => Array (
502 'type' => 'select',
503 'special' => 'tables',
504 'size' => '5',
505 'autoSizeMax' => 50,
506 'maxitems' => 20,
507 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
508 'iconsInOptionTags' => 1,
509 )
510 ),
511 'non_exclude_fields' => Array (
512 'label' => 'Allowed excludefields:',
513 'config' => Array (
514 'type' => 'select',
515 'special' => 'exclude',
516 'size' => '25',
517 'maxitems' => '300',
518 'autoSizeMax' => 50,
519 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
520 )
521 ),
522 'explicit_allowdeny' => Array (
523 'label' => 'Explicitly allow/deny field values:',
524 'config' => Array (
525 'type' => 'select',
526 'special' => 'explicitValues',
527 'maxitems' => '1000',
528 'renderMode' => 'checkbox',
529 )
530 ),
531 'allowed_languages' => Array (
532 'label' => 'Limit to languages:',
533 'config' => Array (
534 'type' => 'select',
535 'special' => 'languages',
536 'maxitems' => '1000',
537 'renderMode' => 'checkbox',
538 )
539 ),
540 'custom_options' => Array (
541 'label' => 'Custom module options:',
542 'config' => Array (
543 'type' => 'select',
544 'special' => 'custom',
545 'maxitems' => '1000',
546 'renderMode' => 'checkbox',
547 )
548 ),
549 'hidden' => Array (
550 'label' => 'Disable:',
551 'config' => Array (
552 'type' => 'check',
553 'default' => '0'
554 )
555 ),
556 'lockToDomain' => Array (
557 'label' => 'Lock to domain:',
558 'config' => Array (
559 'type' => 'input',
560 'size' => '20',
561 'eval' => 'trim',
562 'max' => '50',
563 'checkbox' => '',
564 'softref' => 'substitute'
565 )
566 ),
567 'groupMods' => Array (
568 'label' => 'Modules:',
569 'config' => Array (
570 'type' => 'select',
571 'special' => 'modListGroup',
572 'size' => '5',
573 'autoSizeMax' => 50,
574 'maxitems' => '15',
575 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
576 'iconsInOptionTags' => 1,
577 )
578 ),
579 'inc_access_lists' => Array (
580 'label' => 'Include Access Lists:',
581 'config' => Array (
582 'type' => 'check',
583 'default' => '0'
584 )
585 ),
586 'description' => Array (
587 'label' => 'Description:',
588 'config' => Array (
589 'type' => 'text',
590 'rows' => 5,
591 'cols' => 30
592 )
593 ),
594 'TSconfig' => Array (
595 'label' => 'TSconfig:',
596 'config' => Array (
597 'type' => 'text',
598 'cols' => '40',
599 'rows' => '5',
600 'wizards' => Array(
601 '_PADDING' => 4,
602 '0' => Array(
603 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
604 'title' => 'TSconfig QuickReference',
605 'script' => 'wizard_tsconfig.php?mode=beuser',
606 'icon' => 'wizard_tsconfig.gif',
607 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
608 )
609 ),
610 'softref' => 'TSconfig'
611 )
612 ),
613 'hide_in_lists' => Array (
614 'label' => 'Hide in lists:',
615 'config' => Array (
616 'type' => 'check',
617 'default' => 0
618 )
619 ),
620 'subgroup' => Array (
621 'label' => 'Sub Groups:',
622 'config' => Array (
623 'type' => 'select',
624 'foreign_table' => 'be_groups',
625 'foreign_table_where' => 'AND be_groups.uid != ###THIS_UID### AND NOT be_groups.hidden ORDER BY be_groups.title',
626 'size' => '5',
627 'autoSizeMax' => 50,
628 'maxitems' => 20,
629 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
630 'iconsInOptionTags' => 1,
631 )
632 )
633 ),
634 'types' => Array (
635 '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'),
636 '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')
637 )
638 );
639
640
641
642 /**
643 * 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
644 */
645 $TCA['sys_filemounts'] = Array (
646 'ctrl' => $TCA['sys_filemounts']['ctrl'],
647 'interface' => Array (
648 'showRecordFieldList' => 'title,hidden,path,base'
649 ),
650 'columns' => Array (
651 'title' => Array (
652 'label' => 'LABEL:',
653 'config' => Array (
654 'type' => 'input',
655 'size' => '20',
656 'max' => '30',
657 'eval' => 'required,trim'
658 )
659 ),
660 'path' => Array (
661 'label' => 'PATH:',
662 'config' => Array (
663 'type' => 'input',
664 'size' => '40',
665 'max' => '120',
666 'eval' => 'required,trim',
667 'softref' => 'substitute'
668 )
669 ),
670 'hidden' => Array (
671 'label' => 'Disable:',
672 'config' => Array (
673 'type' => 'check'
674 )
675 ),
676 'base' => Array (
677 'label' => 'BASE',
678 'config' => Array (
679 'type' => 'radio',
680 'items' => Array (
681 Array('absolute (root) / ', 0),
682 Array('relative ../fileadmin/', 1)
683 ),
684 'default' => 0
685 )
686 )
687 ),
688 'types' => Array (
689 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
690 )
691 );
692
693
694
695 /**
696 * System workspaces - Defines the offline workspaces available to users in TYPO3.
697 */
698 $TCA['sys_workspace'] = Array (
699 'ctrl' => $TCA['sys_workspace']['ctrl'],
700 'columns' => Array (
701 'title' => Array (
702 'label' => 'Title:',
703 'config' => Array (
704 'type' => 'input',
705 'size' => '20',
706 'max' => '30',
707 'eval' => 'required,trim'
708 )
709 ),
710 'description' => Array (
711 'label' => 'Description:',
712 'config' => Array (
713 'type' => 'text',
714 'rows' => 5,
715 'cols' => 30
716 )
717 ),
718 'adminusers' => Array (
719 'label' => 'Owners:',
720 'config' => Array (
721 'type' => 'group',
722 'internal_type' => 'db',
723 'allowed' => 'be_users',
724 'size' => '3',
725 'maxitems' => '10',
726 'autoSizeMax' => 10,
727 'show_thumbs' => '1'
728 )
729 ),
730 'members' => Array (
731 'label' => 'Members:',
732 'config' => Array (
733 'type' => 'group',
734 'internal_type' => 'db',
735 'allowed' => 'be_users,be_groups',
736 'prepend_tname' => 1,
737 'size' => '3',
738 'maxitems' => '100',
739 'autoSizeMax' => 10,
740 'show_thumbs' => '1'
741 )
742 ),
743 'reviewers' => Array (
744 'label' => 'Reviewers:',
745 'config' => Array (
746 'type' => 'group',
747 'internal_type' => 'db',
748 'allowed' => 'be_users,be_groups',
749 'prepend_tname' => 1,
750 'size' => '3',
751 'maxitems' => '100',
752 'autoSizeMax' => 10,
753 'show_thumbs' => '1'
754 )
755 ),
756 'db_mountpoints' => Array (
757 'label' => 'DB Mounts:',
758 'config' => Array (
759 'type' => 'group',
760 'internal_type' => 'db',
761 'allowed' => 'pages',
762 'size' => '3',
763 'maxitems' => '10',
764 'autoSizeMax' => 10,
765 'show_thumbs' => '1'
766 )
767 ),
768 'file_mountpoints' => Array (
769 'label' => 'File Mounts:',
770 'config' => Array (
771 'type' => 'select',
772 'foreign_table' => 'sys_filemounts',
773 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
774 'size' => '3',
775 'maxitems' => '10',
776 'autoSizeMax' => 10,
777 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
778 'iconsInOptionTags' => 1,
779 )
780 ),
781 'publish_time' => Array (
782 'label' => 'Publish:',
783 'config' => Array (
784 'type' => 'input',
785 'size' => '8',
786 'max' => '20',
787 'eval' => 'datetime',
788 'default' => '0',
789 'checkbox' => '0'
790 )
791 ),
792 'unpublish_time' => Array (
793 'label' => 'Un-publish:',
794 'config' => Array (
795 'type' => 'input',
796 'size' => '8',
797 'max' => '20',
798 'eval' => 'datetime',
799 'checkbox' => '0',
800 'default' => '0',
801 'range' => Array (
802 'upper' => mktime(0,0,0,12,31,2020),
803 )
804 )
805 ),
806 'freeze' => Array (
807 'label' => 'Freeze Editing',
808 'config' => Array (
809 'type' => 'check',
810 'default' => '0'
811 )
812 ),
813 'live_edit' => Array (
814 'label' => 'Allow "live" editing of records from tables without versioning',
815 'config' => Array (
816 'type' => 'check',
817 'default' => '0'
818 )
819 ),
820 'disable_autocreate' => Array (
821 'label' => 'Disable auto-versioning when editing',
822 'config' => Array (
823 'type' => 'check',
824 'default' => '0'
825 )
826 ),
827 'swap_modes' => Array (
828 'label' => 'Swap modes',
829 'config' => Array (
830 'type' => 'select',
831 'items' => Array (
832 Array('',0),
833 Array('Swap-Into-Workspace on Auto-publish',1),
834 Array('Disable Swap-Into-Workspace',2)
835 ),
836 )
837 ),
838 'vtypes' => Array (
839 'label' => 'Disable Versioning Types',
840 'config' => Array (
841 'type' => 'check',
842 'items' => Array (
843 Array('Element',0),
844 Array('Page',0),
845 Array('Branch',0)
846 ),
847 )
848 ),
849 'publish_access' => Array (
850 'label' => 'Publish access:',
851 'config' => Array (
852 'type' => 'check',
853 'items' => Array (
854 Array('Publish only content in publish stage',0),
855 Array('Only workspace owner can publish',0),
856 ),
857 )
858 ),
859 'stagechg_notification' => Array (
860 'label' => 'Stage change notification by email:',
861 'config' => Array (
862 'type' => 'select',
863 'items' => Array (
864 Array('',0),
865 Array('Notify users on next stage only',1),
866 Array('Notify all users on any change',10)
867 ),
868 )
869 ),
870 ),
871 'types' => Array (
872 '0' => Array('showitem' => 'title,description,--div--,adminusers,members,reviewers,stagechg_notification,--div--,db_mountpoints,file_mountpoints,--div--,publish_time,unpublish_time,--div--,freeze,live_edit,disable_autocreate,swap_modes,vtypes,publish_access')
873 )
874 );
875
876
877
878 /**
879 * System languages - Defines possible languages used for translation of records in the system
880 */
881 $TCA['sys_language'] = Array (
882 'ctrl' => $TCA['sys_language']['ctrl'],
883 'interface' => Array (
884 'showRecordFieldList' => 'hidden,title'
885 ),
886 'columns' => Array (
887 'title' => Array (
888 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
889 'config' => Array (
890 'type' => 'input',
891 'size' => '35',
892 'max' => '80',
893 'eval' => 'trim,required'
894 )
895 ),
896 'hidden' => Array (
897 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
898 'exclude' => 1,
899 'config' => Array (
900 'type' => 'check',
901 'default' => '0'
902 )
903 ),
904 'static_lang_isocode' => Array (
905 'exclude' => 1,
906 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
907 'displayCond' => 'EXT:static_info_tables:LOADED:true',
908 'config' => Array (
909 'type' => 'select',
910 'items' => Array (
911 Array('',0),
912 ),
913 'foreign_table' => 'static_languages',
914 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
915 'size' => 1,
916 'minitems' => 0,
917 'maxitems' => 1,
918 )
919 ),
920 'flag' => array(
921 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
922 'config' => Array (
923 'type' => 'select',
924 'items' => Array (
925 Array('',0),
926 ),
927 'fileFolder' => 't3lib/gfx/flags/', // Only shows if "t3lib/" is in the PATH_site...
928 'fileFolder_extList' => 'png,jpg,jpeg,gif',
929 'fileFolder_recursions' => 0,
930 'selicon_cols' => 8,
931 'size' => 1,
932 'minitems' => 0,
933 'maxitems' => 1,
934 )
935 )
936 ),
937 'types' => Array (
938 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
939 )
940 );
941
942 ?>