added feature #7565: Tabs for sys_template
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_tt_content.php
index ccd613b..2ca6ef0 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
+*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -30,7 +30,7 @@
  *
  * $Id$
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  */
 
 
@@ -47,26 +47,34 @@ $TCA['tt_content'] = Array (
                        'config' => Array (
                                'type' => 'select',
                                'items' => Array (
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.0', 'header'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.1', 'text'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.2', 'textpic'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.3', 'image'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.4', 'bullets'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.5', 'table'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.6', 'uploads'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.7', 'multimedia'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.8', 'mailform'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.9', 'search'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.10', 'login'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.11', 'splash'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.12', 'menu'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.13', 'shortcut'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.14', 'list'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.15', 'script'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.16', 'div'),
-                                       Array('LLL:EXT:cms/locallang_ttc.php:CType.I.17', 'html')
-                               ),
-                               'default' => 'text'
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.div.standard', '--div--'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.0', 'header', 'i/tt_content_header.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.1', 'text', 'i/tt_content.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.2', 'textpic', 'i/tt_content_textpic.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.3', 'image', 'i/tt_content_image.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.div.lists', '--div--'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.4', 'bullets', 'i/tt_content_bullets.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.5', 'table', 'i/tt_content_table.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.6', 'uploads', 'i/tt_content_uploads.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.div.forms', '--div--'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.8', 'mailform', 'i/tt_content_form.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.9', 'search', 'i/tt_content_search.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.10', 'login', 'i/tt_content_login.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.div.special', '--div--'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.7', 'multimedia', 'i/tt_content_mm.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.11', 'splash', 'i/tt_content_news.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.12', 'menu', 'i/tt_content_menu.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.13', 'shortcut', 'i/tt_content_shortcut.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.14', 'list', 'i/tt_content_list.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.15', 'script', 'i/tt_content_script.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.16', 'div', 'i/tt_content_div.gif'),
+                                       array('LLL:EXT:cms/locallang_ttc.xml:CType.I.17', 'html', 'i/tt_content_html.gif')
+                               ),
+                               'default' => 'text',
+                               'authMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode'],
+                               'authMode_enforce' => 'strict',
+                               'iconsInOptionTags' => 1,
+                               'noIconsBelowSelect' => 1,
                        )
                ),
                'hidden' => Array (
@@ -100,7 +108,6 @@ $TCA['tt_content'] = Array (
                                'default' => '0',
                                'range' => Array (
                                        'upper' => mktime(0,0,0,12,31,2020),
-                                       'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
                                )
                        )
                ),
@@ -109,12 +116,14 @@ $TCA['tt_content'] = Array (
                        'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
                        'config' => Array (
                                'type' => 'select',
+                               'size' => 5,
+                               'maxitems' => 20,
                                'items' => Array (
-                                       Array('', 0),
                                        Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),
                                        Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
                                        Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
                                ),
+                               'exclusiveKeys' => '-1,-2',
                                'foreign_table' => 'fe_groups'
                        )
                ),
@@ -141,7 +150,7 @@ $TCA['tt_content'] = Array (
                                        Array('', 0),
                                ),
                                'foreign_table' => 'tt_content',
-                               'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.sys_language_uid=0',
+                               'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.sys_language_uid IN (-1,0)',
                        )
                ),
                'layout' => Array (
@@ -185,6 +194,8 @@ $TCA['tt_content'] = Array (
                        )
                ),
                'header' => Array (
+                       'l10n_mode' => 'prefixLangTitle',
+                       'l10n_cat' => 'text',
                        'label' => 'LLL:EXT:cms/locallang_ttc.php:header',
                        'config' => Array (
                                'type' => 'input',
@@ -221,7 +232,8 @@ $TCA['tt_content'] = Array (
                                                'script' => 'browse_links.php?mode=wizard',
                                                'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
                                        )
-                               )
+                               ),
+                               'softref' => 'typolink'
                        )
                ),
                'header_layout' => Array (
@@ -247,10 +259,13 @@ $TCA['tt_content'] = Array (
                        'config' => Array (
                                'type' => 'input',
                                'size' => '30',
-                               'max' => '256'
+                               'max' => '256',
+                               'softref' => 'email[subst]'
                        )
                ),
                'bodytext' => Array (
+                       'l10n_mode' => 'prefixLangTitle',
+                       'l10n_cat' => 'text',
                        'label' => 'LLL:EXT:lang/locallang_general.php:LGL.text',
                        'config' => Array (
                                'type' => 'text',
@@ -285,7 +300,8 @@ $TCA['tt_content'] = Array (
                                                'script' => 'wizard_forms.php?special=formtype_mail',
                                                'params' => array('xmlOutput' => 0)
                                        )
-                               )
+                               ),
+                               'softref' => 'typolink_tag,images,email[subst],url'
                        )
                ),
                'text_align' => Array (
@@ -375,12 +391,13 @@ $TCA['tt_content'] = Array (
                        )
                ),
                'image' => Array (
+#                      'l10n_mode' => 'mergeIfNotBlank',
                        'label' => 'LLL:EXT:lang/locallang_general.php:LGL.images',
                        'config' => Array (
                                'type' => 'group',
                                'internal_type' => 'file',
                                'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
-                               'max_size' => '1000',
+                               'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
                                'uploadfolder' => 'uploads/pics',
                                'show_thumbs' => '1',
                                'size' => '3',
@@ -439,7 +456,7 @@ $TCA['tt_content'] = Array (
                                        Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.10', 26, 'selicons/intext_left_nowrap.gif')
                                ),
                                'selicon_cols' => 6,
-                               'default' => '8',
+                               'default' => '0',
                                'iconsInOptionTags' => 1,
                        )
                ),
@@ -475,7 +492,8 @@ $TCA['tt_content'] = Array (
                                                'script' => 'browse_links.php?mode=wizard',
                                                'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
                                        )
-                               )
+                               ),
+                               'softref' => 'typolink[linkList]'
                        )
                ),
                'image_zoom' => Array (
@@ -573,7 +591,8 @@ $TCA['tt_content'] = Array (
                        'config' => Array (
                                'type' => 'text',
                                'cols' => '30',
-                               'rows' => '3'
+                               'rows' => '3',
+                               'softref' => 'typolink_tag,images,email[subst],url'
                        )
                ),
                'imagecaption_position' => Array (
@@ -590,6 +609,33 @@ $TCA['tt_content'] = Array (
                                'default' => ''
                        )
                ),
+               'altText' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:cms/locallang_ttc.php:image_altText',
+                       'config' => Array (
+                               'type' => 'text',
+                               'cols' => '30',
+                               'rows' => '3'
+                       )
+               ),
+               'titleText' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:cms/locallang_ttc.php:image_titleText',
+                       'config' => Array (
+                               'type' => 'text',
+                               'cols' => '30',
+                               'rows' => '3'
+                       )
+               ),
+               'longdescURL' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:cms/locallang_ttc.php:image_longdescURL',
+                       'config' => Array (
+                               'type' => 'text',
+                               'cols' => '30',
+                               'rows' => '3'
+                       )
+               ),
                'cols' => Array (
                        'label' => 'LLL:EXT:cms/locallang_ttc.php:cols',
                        'config' => Array (
@@ -661,7 +707,8 @@ $TCA['tt_content'] = Array (
                                'items' => Array (
                                        Array('','')
                                ),
-                               'default' => ''
+                               'default' => '',
+                               'authMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode'],
                        )
                ),
                'select_key' => Array (
@@ -749,7 +796,7 @@ $TCA['tt_content'] = Array (
                                'internal_type' => 'file',
                                'allowed' => '',        // Must be empty for disallowed to work.
                                'disallowed' => 'php,php3',
-                               'max_size' => '10000',
+                               'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
                                'uploadfolder' => 'uploads/media',
                                'show_thumbs' => '1',
                                'size' => '3',
@@ -763,7 +810,7 @@ $TCA['tt_content'] = Array (
                                'type' => 'group',
                                'internal_type' => 'file',
                                'allowed' => 'txt,html,htm,class,swf,swa,dcr,wav,avi,au,mov,asf,mpg,wmv,mp3',
-                               'max_size' => '10000',
+                               'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
                                'uploadfolder' => 'uploads/media',
                                'size' => '2',
                                'maxitems' => '1',
@@ -879,10 +926,11 @@ $TCA['tt_content'] = Array (
                        )
                ),
                'pi_flexform' => array(
+                       'l10n_display' => 'hideDiff',
                        'label' => 'LLL:EXT:cms/locallang_ttc.php:pi_flexform',
                        'config' => Array (
                                'type' => 'flex',
-                               'ds_pointerField' => 'list_type',
+                               'ds_pointerField' => 'list_type,CType',
                                'ds' => array(
                                        'default' => '
                                                <T3DataStructure>
@@ -907,20 +955,31 @@ $TCA['tt_content'] = Array (
                        )
                ),
                'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
+               'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
+               't3ver_label' => Array (
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
+                       'config' => Array (
+                               'type' => 'input',
+                               'size' => '30',
+                               'max' => '30',
+                       )
+               ),
        ),
        'types' => Array (
                '1' =>  Array('showitem' => 'CType'),
                'header' =>     Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, subheader;;8'),
-               'text' =>               Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;9;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[flag=rte_enabled|mode=ts];3-3-3, rte_enabled, text_properties'),
-               'textpic' =>    Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;9;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[flag=rte_enabled|mode=ts];3-3-3, rte_enabled, text_properties, --div--, image;;;;4-4-4, imageorient;;2, imagewidth;;13,
+               'text' =>               Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;9;richtext:rte_transform[flag=rte_enabled|mode=ts_css];3-3-3, rte_enabled, text_properties'),
+               'textpic' =>    Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;9;richtext:rte_transform[flag=rte_enabled|mode=ts_css];3-3-3, rte_enabled, text_properties, --div--, image;;;;4-4-4, imageorient;;2, imagewidth;;13,
                        --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
                        --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
-                       imagecaption;;5'),
+                       imagecaption;;5,
+                       altText;;;;1-1-1,titleText,longdescURL'),
                'rte' =>                Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;;nowrap:richtext[*]:rte_transform[mode=ts_images-ts_reglinks];3-3-3'),
                'image' =>              Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, image;;;;4-4-4, imageorient;;2, imagewidth;;13,
                        --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
                        --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
-                        imagecaption;;5'),
+                        imagecaption;;5,
+                        altText;;;;1-1-1,titleText,longdescURL'),
                'bullets' =>    Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, layout;;;;3-3-3, bodytext;;9;nowrap, text_properties'),
                'table' =>              Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, layout;;10;button;3-3-3, cols, bodytext;;9;nowrap:wizards[table], text_properties'),
                'splash' =>     Array('showitem' => 'CType;;4;button;1-1-1, header;LLL:EXT:lang/locallang_general.php:LGL.name;;;2-2-2, splash_layout, bodytext;;;;3-3-3, image;;6'),
@@ -956,7 +1015,6 @@ $TCA['tt_content'] = Array (
                                                                '7' => 'layout',
                                                                '1' => 'layout',
                                                                '8' => 'layout',
-                                                               'indexed_search' => 'layout',
                                                                '11' => 'layout',
                                                                '20' => 'layout',
                                                                '21' => 'layout'
@@ -967,7 +1025,8 @@ $TCA['tt_content'] = Array (
                        bodytext;LLL:EXT:cms/locallang_ttc.php:bodytext.ALT.html;;nowrap;3-3-3')
        ),
        'palettes' => Array (
-               '1' => Array('showitem' => 'hidden, starttime, endtime, fe_group'),
+               '1' => Array('showitem' => 'hidden, starttime, endtime'),
+               '15' => Array('showitem' => 'fe_group'),
                '2' => Array('showitem' => 'imagecols, image_noRows, imageborder'),
                '3' => Array('showitem' => 'header_position, header_layout, header_link, date'),
                '4' => Array('showitem' => 'sys_language_uid, l18n_parent, colPos, spaceBefore, spaceAfter, section_frame, sectionIndex, linkToTop'),