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