[BUGFIX] Set correct file extensions in ['SYS']['mediafile_ext']
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_category.php
index 59af0bb..e6ad5da 100644 (file)
@@ -2,13 +2,13 @@
 return array(
        'ctrl' => array(
                'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category',
+               'descriptionColumn' => 'description',
                'label' => 'title',
                'tstamp' => 'tstamp',
                'crdate' => 'crdate',
                'cruser_id' => 'cruser_id',
                'delete' => 'deleted',
-               'default_sortby' => 'ORDER BY title ASC',
-               'dividers2tabs' => TRUE,
+               'sortby' => 'sorting',
                'versioningWS' => 2,
                'rootLevel' => -1,
                'versioning_followPages' => TRUE,
@@ -24,13 +24,20 @@ return array(
                ),
                'typeicon_classes' => array(
                        'default' => 'mimetypes-x-sys_category'
+               ),
+               'security' => array(
+                       'ignoreRootLevelRestriction' => TRUE,
                )
        ),
        'interface' => array(
                'showRecordFieldList' => 'title,description'
        ),
        'types' => array(
-               '1' => array('showitem' => 'title;;1, parent,description,--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.items,items,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime')
+               '1' => array(
+                       'showitem' => 'title, --palette--;;1, parent, description,
+                               --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.items, items,
+                               --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
+               ),
        ),
        'palettes' => array(
                '1' => array('showitem' => 'sys_language_uid, l10n_parent, hidden')
@@ -54,7 +61,8 @@ return array(
                                'items' => array(
                                        array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
                                        array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
-                               )
+                               ),
+                               'default' => 0
                        )
                ),
                'l10n_parent' => array(
@@ -67,20 +75,14 @@ return array(
                                        array('', 0)
                                ),
                                'foreign_table' => 'sys_category',
-                               'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)'
+                               'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'l10n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
-                       )
-               ),
-               't3ver_label' => array(
-                       'displayCond' => 'FIELD:t3ver_label:REQ:true',
-                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
-                       'config' => array(
-                               'type' => 'none',
-                               'cols' => 27
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -97,7 +99,6 @@ return array(
                        'config' => array(
                                'type' => 'input',
                                'size' => '10',
-                               'max' => '20',
                                'eval' => 'datetime',
                                'checkbox' => '0',
                                'default' => '0'
@@ -110,7 +111,6 @@ return array(
                        'config' => array(
                                'type' => 'input',
                                'size' => '8',
-                               'max' => '20',
                                'eval' => 'datetime',
                                'checkbox' => '0',
                                'default' => '0',
@@ -132,7 +132,8 @@ return array(
                        'exclude' => 0,
                        'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.description',
                        'config' => array(
-                               'type' => 'text'
+                               'type' => 'text',
+                               'default' => '',
                        )
                ),
                'parent' => array(
@@ -144,10 +145,16 @@ return array(
                                'type' => 'select',
                                'renderMode' => 'tree',
                                'foreign_table' => 'sys_category',
-                               'foreign_table_where' => ' ORDER BY sys_category.title ASC',
+                               'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
                                'treeConfig' => array(
-                                       'parentField' => 'parent'
-                               )
+                                       'parentField' => 'parent',
+                                       'appearance' => array(
+                                               'expandAll' => TRUE,
+                                               'showHeader' => TRUE,
+                                               'maxLevels' => 99,
+                                       ),
+                               ),
+                               'default' => 0
                        )
                ),
                'items' => array(
@@ -158,9 +165,10 @@ return array(
                                'internal_type' => 'db',
                                'allowed' => '*',
                                'MM' => 'sys_category_record_mm',
+                               'MM_oppositeUsage' => array(),
+                               'size' => 10,
                                'show_thumbs' => FALSE
                        )
                )
        )
 );
-?>