2 /***************************************************************
5 * (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
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.
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.
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.
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
28 * Dynamic configuation of the system-related tables, typ. sys_* series
32 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
39 // ******************************************************************
42 // FrontEnd users - login on the website
43 // ******************************************************************
44 $TCA['fe_users'] = Array (
45 'ctrl' => $TCA['fe_users']['ctrl'],
46 'interface' => Array (
47 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime'
49 'feInterface' => $TCA['fe_users']['feInterface'],
52 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.username',
57 'eval' => 'nospace,lower,uniqueInPid,required'
61 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.password',
66 'eval' => 'nospace,required,password'
69 'usergroup' => Array (
70 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.usergroup',
73 'foreign_table' => 'fe_groups',
79 'lockToDomain' => Array (
81 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.lockToDomain',
88 'softref' => 'substitute'
93 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
103 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
110 'telephone' => Array (
112 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.phone',
122 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fax',
132 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
142 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title_person',
152 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.zip',
162 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.city',
172 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.country',
182 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www',
192 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.company',
202 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image',
205 'internal_type' => 'file',
206 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
207 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
208 'uploadfolder' => 'uploads/pics',
209 'show_thumbs' => '1',
217 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
222 'starttime' => Array (
224 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
236 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
245 'upper' => mktime(0,0,0,12,31,2020),
249 'TSconfig' => Array (
251 'label' => 'TSconfig:',
259 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
260 'title' => 'TSconfig QuickReference',
261 'script' => 'wizard_tsconfig.php?mode=fe_users',
262 'icon' => 'wizard_tsconfig.gif',
263 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
266 'softref' => 'TSconfig'
268 'defaultExtras' => 'fixed-font : enable-tab',
272 '0' => Array('showitem' => '
273 disable,username;;;;1-1-1, password, usergroup,
274 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.personelData, name;;1;;1-1-1, address, zip, city, country, telephone, fax, email, www, image;;;;2-2-2,
275 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
276 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
277 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.extended
281 'palettes' => Array (
282 '1' => Array('showitem' => 'title,company')
290 // ******************************************************************
293 // FrontEnd usergroups - Membership of these determines access to elements
294 // ******************************************************************
295 $TCA['fe_groups'] = Array (
296 'ctrl' => $TCA['fe_groups']['ctrl'],
297 'interface' => Array (
298 'showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'
302 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
310 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
315 'eval' => 'trim,required'
318 'subgroup' => Array (
320 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.subgroup',
323 'foreign_table' => 'fe_groups',
324 'foreign_table_where' => 'AND NOT(fe_groups.uid = ###THIS_UID###) AND fe_groups.hidden=0 ORDER BY fe_groups.title',
331 'lockToDomain' => Array (
333 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
342 'description' => Array (
343 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
350 'TSconfig' => Array (
352 'label' => 'TSconfig:',
360 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
361 'title' => 'TSconfig QuickReference',
362 'script' => 'wizard_tsconfig.php?mode=fe_users',
363 'icon' => 'wizard_tsconfig.gif',
364 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
367 'softref' => 'TSconfig'
369 'defaultExtras' => 'fixed-font : enable-tab',
373 '0' => Array('showitem' => '
374 hidden;;;;1-1-1,title;;;;2-2-2,description,subgroup;;;;3-3-3,
375 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
376 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.extended
384 // ******************************************************************
386 // ******************************************************************
387 $TCA['sys_domain'] = Array (
388 'ctrl' => $TCA['sys_domain']['ctrl'],
389 'interface' => Array (
390 'showRecordFieldList' => 'hidden,domainName,redirectTo'
393 'domainName' => Array (
394 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
399 'eval' => 'required,unique,lower,trim',
400 'softref' => 'substitute'
403 'redirectTo' => Array (
404 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
412 'softref' => 'substitute'
416 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
423 'prepend_params' => Array (
424 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
433 '1' => Array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
435 'palettes' => Array (
436 '1' => Array('showitem' => 'redirectTo')
444 // ******************************************************************
445 // pages_language_overlay
446 // ******************************************************************
447 $TCA['pages_language_overlay'] = Array (
448 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
449 'interface' => Array (
450 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
455 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
461 'starttime' => Array (
463 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
475 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
484 'upper' => mktime(0,0,0,12,31,2020),
489 'l10n_mode' => 'prefixLangTitle',
490 'label' => $TCA['pages']['columns']['title']['label'],
491 'l10n_cat' => 'text',
499 'subtitle' => Array (
501 'l10n_cat' => 'text',
502 'label' => $TCA['pages']['columns']['subtitle']['label'],
510 'nav_title' => Array (
512 'l10n_cat' => 'text',
513 'label' => $TCA['pages']['columns']['nav_title']['label'],
522 'keywords' => Array (
524 'label' => $TCA['pages']['columns']['keywords']['label'],
531 'description' => Array (
533 'label' => $TCA['pages']['columns']['description']['label'],
540 'abstract' => Array (
542 'label' => $TCA['pages']['columns']['abstract']['label'],
551 'label' => $TCA['pages']['columns']['author']['label'],
559 'author_email' => Array (
561 'label' => $TCA['pages']['columns']['author_email']['label'],
571 'label' => $TCA['pages']['columns']['media']['label'],
574 'internal_type' => 'file',
575 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
576 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
577 'uploadfolder' => 'uploads/media',
578 'show_thumbs' => '1',
584 'sys_language_uid' => Array (
585 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
588 'foreign_table' => 'sys_language',
589 'foreign_table_where' => 'ORDER BY sys_language.title',
591 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
595 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
596 'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
597 't3ver_label' => Array (
598 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
607 '0' => Array('showitem' => 'hidden;;;;1-1-1, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4')
609 'palettes' => Array (
610 '1' => Array('showitem' => 'starttime,endtime'),
611 '5' => Array('showitem' => 'author,author_email')
617 // ******************************************************************
619 // ******************************************************************
620 $TCA['sys_template'] = Array (
621 'ctrl' => $TCA['sys_template']['ctrl'],
622 'interface' => Array (
623 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
627 'label' => 'Template title:',
636 'label' => 'Deactivated:',
643 'starttime' => Array (
666 'upper' => mktime(0,0,0,12,31,2020),
671 'label' => 'Rootlevel:',
681 Array('Constants', ''),
687 'sitetitle' => Array (
688 'label' => 'Website title:',
695 'constants' => Array (
696 'label' => 'Constants:',
702 'softref' => 'TStemplate,email[subst],url[subst]'
704 'defaultExtras' => 'fixed-font : enable-tab',
706 'resources' => Array (
707 'label' => 'Resources:',
710 'internal_type' => 'file',
711 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js,xml',
712 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
713 'uploadfolder' => 'uploads/tf',
714 'show_thumbs' => '1',
720 'nextLevel' => Array (
721 'label' => 'Template on next level:',
724 'internal_type' => 'db',
725 'allowed' => 'sys_template',
726 'show_thumbs' => '1',
733 'include_static' => Array (
734 'label' => 'Include static:',
737 'foreign_table' => 'static_template',
738 'foreign_table_where' => 'ORDER BY static_template.title DESC',
744 'include_static_file' => Array(
745 'label' => 'Include static (from extensions):',
752 'softref' => 'ext_fileref'
756 'label' => 'Include basis template:',
759 'internal_type' => 'db',
760 'allowed' => 'sys_template',
761 'show_thumbs' => '1',
772 'title' => 'Edit filemount',
773 'script' => 'wizard_edit.php',
774 'popup_onlyOpenIfSelected' => 1,
775 'icon' => 'edit2.gif',
776 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
780 'title' => 'Add new basis template',
783 'table'=>'sys_template',
784 'pid' => '###CURRENT_PID###',
785 'setValue' => 'prepend'
787 'script' => 'wizard_add.php',
792 'includeStaticAfterBasedOn' => Array (
793 'label' => 'Include static AFTER basedOn:',
809 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
810 'title' => 'TSref online',
811 'script' => 'wizard_tsconfig.php?mode=tsref',
812 'icon' => 'wizard_tsconfig.gif',
813 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
817 'softref' => 'TStemplate,email[subst],url[subst]'
819 'defaultExtras' => 'fixed-font : enable-tab',
821 'editorcfg' => Array (
822 'label' => 'Backend Editor Configuration:',
829 'defaultExtras' => 'fixed-font : enable-tab',
831 'description' => Array (
832 'label' => 'Description:',
839 'static_file_mode' => Array (
840 'label' => 'Static template files from T3 Extensions:',
844 Array('Default (Include before if Root-flag is set)', '0'),
845 Array('Always include before this template record', '1'),
846 Array('Never include before this template record', '2'),
851 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
852 't3ver_label' => Array (
853 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
862 '1' => Array('showitem' => 'title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, resources, clear, root, --div--, include_static;;2;;5-5-5, include_static_file;;2, basedOn;;2, static_file_mode, nextLevel, --div--, description;;;;5-5-5, editorcfg')
864 'palettes' => Array (
865 '1' => Array('showitem' => 'hidden,starttime,endtime'),
866 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
874 // ******************************************************************
876 // ******************************************************************
877 $TCA['static_template'] = Array (
878 'ctrl' => $TCA['static_template']['ctrl'],
879 'interface' => Array (
880 'showRecordFieldList' => 'title,include_static,description'
884 'label' => 'Template title:',
892 'constants' => Array (
893 'label' => 'Constants:',
900 'defaultExtras' => 'fixed-font : enable-tab',
902 'include_static' => Array (
903 'label' => 'Include static:',
906 'foreign_table' => 'static_template',
907 'foreign_table_where' => 'ORDER BY static_template.title',
921 'defaultExtras' => 'fixed-font : enable-tab',
923 'editorcfg' => Array (
924 'label' => 'Backend Editor Configuration:',
931 'defaultExtras' => 'fixed-font : enable-tab',
933 'description' => Array (
934 'label' => 'Description:',
943 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')