Fixed bug #16028: Enable 'clear input field' functionality by default (Thanks to...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
index 50bd5f2..c7573b4 100755 (executable)
@@ -85,7 +85,6 @@ $TCA['fe_users'] = array(
                                'size' => '20',
                                'eval' => 'trim',
                                'max' => '50',
-                               'checkbox' => '',
                                'softref' => 'substitute'
                        )
                ),
@@ -259,7 +258,6 @@ $TCA['fe_users'] = array(
                                'max' => '20',
                                'eval' => 'date',
                                'default' => '0',
-                               'checkbox' => '0'
                        )
                ),
                'endtime' => array(
@@ -270,7 +268,6 @@ $TCA['fe_users'] = array(
                                'size' => '8',
                                'max' => '20',
                                'eval' => 'date',
-                               'checkbox' => '0',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0,0,0,12,31,2020),
@@ -379,7 +376,6 @@ $TCA['fe_groups'] = array(
                                'size' => '20',
                                'eval' => 'trim',
                                'max' => '50',
-                               'checkbox' => ''
                        )
                ),
                'description' => array(
@@ -449,7 +445,6 @@ $TCA['sys_domain'] = array(
                                'type' => 'input',
                                'size' => '35',
                                'max' => '120',
-                               'checkbox' => '',
                                'default' => '',
                                'eval' => 'trim',
                                'softref' => 'substitute'
@@ -522,7 +517,12 @@ $TCA['pages_language_overlay'] = array(
                        'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
                        'config' => array(
                                'type' => 'check',
-                               'default' => '0'
+                               'default' => '0',
+                               'items' => array(
+                                       '1' => array(
+                                               '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden_checkbox_1_formlabel',
+                                       ),
+                               ),
                        )
                ),
                'starttime' => array(
@@ -533,7 +533,6 @@ $TCA['pages_language_overlay'] = array(
                                'size' => '8',
                                'max' => '20',
                                'eval' => 'date',
-                               'checkbox' => '0',
                                'default' => '0'
                        )
                ),
@@ -545,7 +544,6 @@ $TCA['pages_language_overlay'] = array(
                                'size' => '8',
                                'max' => '20',
                                'eval' => 'date',
-                               'checkbox' => '0',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0,0,0,12,31,2020),
@@ -558,9 +556,9 @@ $TCA['pages_language_overlay'] = array(
                        'l10n_cat' => 'text',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '30',
-                               'max' => '256',
-                               'eval' => 'required'
+                               'size' => '50',
+                               'max' => '255',
+                               'eval' => 'trim,required',
                        )
                ),
                'subtitle' => array(
@@ -569,9 +567,9 @@ $TCA['pages_language_overlay'] = array(
                        'label' => $TCA['pages']['columns']['subtitle']['label'],
                        'config' => array(
                                'type' => 'input',
-                               'size' => '30',
-                               'max' => '256',
-                               'eval' => ''
+                               'size' => '50',
+                               'max' => '255',
+                               'eval' => 'trim',
                        )
                ),
                'nav_title' => array(
@@ -580,10 +578,9 @@ $TCA['pages_language_overlay'] = array(
                        'label' => $TCA['pages']['columns']['nav_title']['label'],
                        'config' => array(
                                'type' => 'input',
-                               'size' => '30',
-                               'max' => '256',
-                               'checkbox' => '',
-                               'eval' => 'trim'
+                               'size' => '50',
+                               'max' => '255',
+                               'eval' => 'trim',
                        )
                ),
                'keywords' => array(
@@ -618,9 +615,9 @@ $TCA['pages_language_overlay'] = array(
                        'label' => $TCA['pages']['columns']['author']['label'],
                        'config' => array(
                                'type' => 'input',
-                               'size' => '20',
+                               'size' => '23',
                                'eval' => 'trim',
-                               'max' => '80'
+                               'max' => '80',
                        )
                ),
                'author_email' => array(
@@ -628,9 +625,10 @@ $TCA['pages_language_overlay'] = array(
                        'label' => $TCA['pages']['columns']['author_email']['label'],
                        'config' => array(
                                'type' => 'input',
-                               'size' => '20',
+                               'size' => '23',
                                'eval' => 'trim',
-                               'max' => '80'
+                               'max' => '80',
+                               'softref' => 'email[subst]',
                        )
                ),
                'media' => array(
@@ -653,9 +651,10 @@ $TCA['pages_language_overlay'] = array(
                        'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '25',
+                               'size' => '23',
                                'max' => '255',
-                               'eval' => 'trim'
+                               'eval' => 'trim',
+                               'softref' => 'url',
                        )
                ),
                'urltype' => array(
@@ -673,7 +672,7 @@ $TCA['pages_language_overlay'] = array(
                                'type' => 'group',
                                'internal_type' => 'db',
                                'allowed' => 'pages',
-                               'size' => '3',
+                               'size' => '1',
                                'maxitems' => '1',
                                'minitems' => '0',
                                'show_thumbs' => '1',
@@ -716,29 +715,169 @@ $TCA['pages_language_overlay'] = array(
                ),
        ),
        'types' => array(
-                       // Standard
-               '1'   => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, nav_title,                                                                                              --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata, --palette--;LLL:EXT:lang/locallang_general.xml:LGL.author;5;;3-3-3, abstract, keywords, description, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
-
-                       // External URL - URL and URL type can be different for the translated page
-               '3'   => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle,            --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.url, url;;;;3-3-3, urltype,                                                                                                                                                                                 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
-
-                       // Shortcut - shortcut and shortcut mode can be different for the translated page
-               '4'   => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle,            --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.shortcut, shortcut;;;;3-3-3, shortcut_mode,                                                                                                                                                                 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
-
-                       // Mount Point - mount point options can _NOT_ be different for the translated page
-               '7'   => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, nav_title,                                                                                                                                                                                                                                                              --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
-
-                       // Separator
-               '199' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2'),
-
-                       // Sysfolder
-               '254' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;LLL:EXT:lang/locallang_general.xml:LGL.title;;;2-2-2'),
-
-                       // Recycler
-               '255' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2')
+               // normal
+               (string) t3lib_pageSelect::DOKTYPE_DEFAULT => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.metatags;metatags,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+               '),
+               // external URL
+               (string) t3lib_pageSelect::DOKTYPE_LINK => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.external;external,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+               '),
+               // shortcut
+               (string) t3lib_pageSelect::DOKTYPE_SHORTCUT => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcut;shortcut,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcutpage;shortcutpage,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+                               '),
+               // not in menu
+               (string) t3lib_pageSelect::DOKTYPE_HIDE_IN_MENU => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.metatags;metatags,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+               '),
+               // mount page
+               (string) t3lib_pageSelect::DOKTYPE_MOUNTPOINT => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+               '),
+               // spacer
+               (string) t3lib_pageSelect::DOKTYPE_SPACER => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+                       '),
+               // sysfolder
+               (string) t3lib_pageSelect::DOKTYPE_SYSFOLDER => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+               '),
+               // trash
+               (string) t3lib_pageSelect::DOKTYPE_RECYCLER => array(
+                       'showitem' =>
+                       '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
+                                       --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
+                               --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
+               '),
        ),
        'palettes' => array(
-               '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => true)
+               '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => true),
+               'standard' => array(
+                       'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, sys_language_uid',
+                       'canNotCollapse' => 1,
+               ),
+               'shortcut' => array(
+                       'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, sys_language_uid, shortcut_mode;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'shortcutpage' => array(
+                       'showitem' => 'shortcut;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'external' => array(
+                       'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, sys_language_uid, urltype;LLL:EXT:cms/locallang_tca.xml:pages.urltype_formlabel, url;LLL:EXT:cms/locallang_tca.xml:pages.url_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'title' => array(
+                       'showitem' => 'title;LLL:EXT:cms/locallang_tca.xml:pages.title_formlabel, --linebreak--, nav_title;LLL:EXT:cms/locallang_tca.xml:pages.nav_title_formlabel, --linebreak--, subtitle;LLL:EXT:cms/locallang_tca.xml:pages.subtitle_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'titleonly' => array(
+                       'showitem' => 'title;LLL:EXT:cms/locallang_tca.xml:pages.title_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'hiddenonly' => array(
+                       'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xml:pages.hidden_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'access' => array(
+                       'showitem' => 'starttime;LLL:EXT:cms/locallang_tca.xml:pages.starttime_formlabel, endtime;LLL:EXT:cms/locallang_tca.xml:pages.endtime_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'abstract' => array(
+                       'showitem' => 'abstract;LLL:EXT:cms/locallang_tca.xml:pages.abstract_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'metatags' => array(
+                       'showitem' => 'keywords;LLL:EXT:cms/locallang_tca.xml:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:cms/locallang_tca.xml:pages.description_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'editorial' => array(
+                       'showitem' => 'author;LLL:EXT:cms/locallang_tca.xml:pages.author_formlabel, author_email;LLL:EXT:cms/locallang_tca.xml:pages.author_email_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'language' => array(
+                       'showitem' => 'l18n_cfg;LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg_formlabel',
+                       'canNotCollapse' => 1,
+               ),
+               'media' => array(
+                       'showitem' => 'media;LLL:EXT:cms/locallang_tca.xml:pages.media_formlabel',
+                       'canNotCollapse' => 1,
+               )
        )
 );
 
@@ -778,7 +917,6 @@ $TCA['sys_template'] = array(
                                'size' => '8',
                                'max' => '20',
                                'eval' => 'date',
-                               'checkbox' => '0',
                                'default' => '0'
                        )
                ),
@@ -790,7 +928,6 @@ $TCA['sys_template'] = array(
                                'size' => '8',
                                'max' => '20',
                                'eval' => 'date',
-                               'checkbox' => '0',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0,0,0,12,31,2020),
@@ -996,5 +1133,81 @@ $TCA['sys_template'] = array(
        )
 );
 
+// ******************************************************************
+// be_layouts
+// ******************************************************************
+/**
+ * @todo add lll
+ */
+$TCA['be_layouts'] = array(
+       'ctrl' => $TCA['be_layouts']['ctrl'],
+       'interface' => array(
+               'showRecordFieldList' => 'title,config,description,hidden,icon'
+       ),
+       'columns' => array(
+               'title' => array(
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:be_layouts.title',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '25',
+                               'max' => '256',
+                               'eval' => 'required'
+                       )
+               ),
+               'description' => array(
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:be_layouts.description',
+                       'config' => array(
+                               'type' => 'text',
+                               'rows' => '5',
+                               'cols' => '25',
+                       )
+               ),
+               'config' => array(
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:be_layouts.config',
+                       'config' => array(
+                               'type' => 'text',
+                               'rows' => '5',
+                               'cols' => '25',
+                               'wizards' => Array(
+                                       '_PADDING' => 4,
+                                       0 => Array(
+                                               'title' => 'LLL:EXT:cms/locallang_tca.xml:be_layouts.wizard',
+                                               'type' => 'popup',
+                                               'icon' => t3lib_extMgm::extRelPath('cms').'layout/wizard_be_layout.png',
+                                               'script' => t3lib_extMgm::extRelPath('cms').'layout/wizard_be_layout.php',
+                                               'JSopenParams' => 'height=800,width=800,status=0,menubar=0,scrollbars=0',
+                                       ),
+                               ),
+                       )
+               ),
+               'hidden' => array(
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
+                       'exclude' => 1,
+                       'config' => array(
+                               'type' => 'check',
+                               'default' => '0'
+                       )
+               ),
+               'icon' => array(
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:be_layouts.icon',
+                       'exclude' => 1,
+                       'config' => array(
+                               'type' => 'group',
+                               'internal_type' => 'file',
+                               'allowed' => 'jpg,gif,png',
+                               'uploadfolder' => 'uploads/media',
+                               'show_thumbs' => 1,
+                               'size' => 1,
+                               'maxitems' => 1
+                       )
+               ),
+       ),
+       'types' => array(
+               '1' => array('showitem' => '
+                       hidden,title;;1;;2-2-2, icon, description, config'
+               )
+       )
+);
+
 
 ?>
\ No newline at end of file