Fixed bug #9046: Nested domain linking
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
index 8ff785f..2458617 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -71,6 +71,7 @@ $TCA['fe_users'] = array(
                        'config' => array(
                                'type' => 'select',
                                'foreign_table' => 'fe_groups',
+                               'foreign_table_where' => 'ORDER BY fe_groups.title',
                                'size' => '6',
                                'minitems' => '1',
                                'maxitems' => '50'
@@ -273,8 +274,8 @@ $TCA['fe_users'] = array(
                        'config' => array(
                                'type' => 'input',
                                'readOnly' => '1',
-                               'size' => '8',
-                               'eval' => 'date'
+                               'size' => '12',
+                               'eval' => 'datetime',
                        )
                )
        ),
@@ -452,10 +453,18 @@ $TCA['sys_domain'] = array(
                                'type' => 'check',
                                'default' => '0'
                        )
+               ),
+               'forced' => array(
+                       'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.forced',
+                       'exclude' => 1,
+                       'config' => array(
+                               'type' => 'check',
+                               'default' => '1'
+                       )
                )
        ),
        'types' => array(
-               '1' => array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
+               '1' => array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params,forced;;;;4-4-4')
        ),
        'palettes' => array(
                '1' => array('showitem' => 'redirectTo, redirectHttpStatusCode')
@@ -475,9 +484,10 @@ $TCA['pages_language_overlay'] = array(
                'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
        ),
        'columns' => array(
+               'doktype' => $TCA['pages']['columns']['doktype'],
                'hidden' => array(
                        'exclude' => 1,
-                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
                        'config' => array(
                                'type' => 'check',
                                'default' => '0'
@@ -557,9 +567,9 @@ $TCA['pages_language_overlay'] = array(
                        'exclude' => 1,
                        'label' => $TCA['pages']['columns']['description']['label'],
                        'config' => array(
-                               'type' => 'input',
-                               'size' => '40',
-                               'eval' => 'trim'
+                               'type' => 'text',
+                               'cols' => '40',
+                               'rows' => '3'
                        )
                ),
                'abstract' => array(
@@ -606,6 +616,51 @@ $TCA['pages_language_overlay'] = array(
                                'minitems' => '0'
                        )
                ),
+               'url' => array(
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:cms/locallang_tca.php:pages.url',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '25',
+                               'max' => '255',
+                               'eval' => 'trim'
+                       )
+               ),
+               'urltype' => array(
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
+                       'config' => array(
+                               'type' => 'select',
+                               'items' => $TCA['pages']['columns']['urltype']['config']['items'],
+                               'default' => '1'
+                       )
+               ),
+               'shortcut' => array (
+                       'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
+                       'config' => array (
+                               'type' => 'group',
+                               'internal_type' => 'db',
+                               'allowed' => 'pages',
+                               'size' => '3',
+                               'maxitems' => '1',
+                               'minitems' => '0',
+                               'show_thumbs' => '1',
+                               'wizards' => array(
+                                       'suggest' => array(
+                                               'type' => 'suggest',
+                                       ),
+                               ),
+                       ),
+               ),
+               'shortcut_mode' => array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
+                       'config' => array (
+                               'type' => 'select',
+                               'items' => $TCA['pages']['columns']['shortcut_mode']['config']['items'],
+                               'default' => '0'
+                       )
+               ),
                'sys_language_uid' => array(
                        'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
                        'config' => array(
@@ -624,16 +679,34 @@ $TCA['pages_language_overlay'] = array(
                        'config' => array(
                                'type' => 'input',
                                'size' => '30',
-                               'max' => '30',
+                               'max' => '255',
                        )
                ),
        ),
        'types' => array(
-               '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')
+                       // 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')
        ),
        'palettes' => array(
-               '1' => array('showitem' => 'starttime,endtime'),
-               '5' => array('showitem' => 'author,author_email')
+               '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => true)
        )
 );
 
@@ -752,7 +825,12 @@ $TCA['sys_template'] = array(
                                'size' => '1',
                                'maxitems' => '1',
                                'minitems' => '0',
-                               'default' => ''
+                               'default' => '',
+                               'wizards' => array(
+                                       'suggest' => array(
+                                               'type' => 'suggest',
+                                       ),
+                               ),
                        )
                ),
                'include_static' => array(
@@ -792,6 +870,9 @@ $TCA['sys_template'] = array(
                                'wizards' => array(
                                        '_PADDING' => 4,
                                        '_VERTICAL' => 1,
+                                       'suggest' => array(
+                                               'type' => 'suggest',
+                                       ),
                                        'edit' => array(
                                                'type' => 'popup',
                                                'title' => 'Edit template',
@@ -866,9 +947,9 @@ $TCA['sys_template'] = array(
                        'config' => array(
                                'type' => 'select',
                                'items' => array(
-                                       array('Default (Include before if Root-flag is set)', '0'),
-                                       array('Always include before this template record', '1'),
-                                       array('Never include before this template record', '2'),
+                                       array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.0', '0'),
+                                       array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.1', '1'),
+                                       array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.2', '2'),
                                ),
                                'default' => '0'
                        )
@@ -879,7 +960,7 @@ $TCA['sys_template'] = array(
                        'config' => array(
                                'type' => 'input',
                                'size' => '30',
-                               'max'  => '30',
+                               'max'  => '255',
                        )
                ),
        ),
@@ -973,4 +1054,4 @@ $TCA['static_template'] = array(
 
 
 
-?>
+?>
\ No newline at end of file