[BUGFIX] Shared defaults for CE wizard using TCAdefaults
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
index c683545..66e5bf1 100644 (file)
@@ -2,18 +2,28 @@
 if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
-\TYPO3\CMS\Core\Extension\ExtensionManager::addUserTSConfig('
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
        options.saveDocView = 1
        options.saveDocNew = 1
        options.saveDocNew.pages = 0
-       options.saveDocNew.pages_language_overlay = 1
+       options.saveDocNew.sys_file = 0
+       options.disableDelete.sys_file = 1
+       TCAdefaults.tt_content.imagecols = 2
 ');
-\TYPO3\CMS\Core\Extension\ExtensionManager::addPageTSConfig('
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
 mod.wizards.newContentElement {
        renderMode = tabs
        wizardItems {
                common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common
                common.elements {
+                       header {
+                               icon = gfx/c_wiz/regular_header.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_headerOnly_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_headerOnly_description
+                               tt_content_defValues {
+                                       CType = header
+                               }
+                       }
                        text {
                                icon = gfx/c_wiz/regular_text.gif
                                title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_title
@@ -37,7 +47,6 @@ mod.wizards.newContentElement {
                                description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_description
                                tt_content_defValues {
                                        CType = image
-                                       imagecols = 2
                                }
                        }
                        bullets {
@@ -58,7 +67,7 @@ mod.wizards.newContentElement {
                        }
 
                }
-               common.show = text,textpic,image,bullets,table
+               common.show = header,text,textpic,image,bullets,table
 
                special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special
                special.elements {
@@ -174,12 +183,14 @@ $TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic
 $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
        'title' => 'CMS Frontend',
        'version' => 4000000,
-       'description' => ((('<ul>' . '<li><p>The extention simluatestatic has been removed in TYPO3 6.0</p></li>') . '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>') . '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>') . '</ul>'
+       'description' => '<ul>' . '<li><p>The extention simluatestatic has been removed in TYPO3 6.0</p></li>' . '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>' . '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>' . '</ul>'
 );
+
 // Registering hooks for the treelist cache
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
+$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
+$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
+$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
+
 if (TYPO3_MODE === 'FE') {
        // Register the core media wizard provider
        \TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager::registerMediaWizardProvider('TYPO3\\CMS\\Frontend\\MediaWizard\\MediaWizardProvider');
@@ -190,5 +201,5 @@ if (TYPO3_MODE === 'FE') {
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
 // Register hook to show preview info
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = 'EXT:cms/tslib/hooks/class.tx_cms_fehooks.php:TYPO3\\CMS\\Frontend\\Hooks\\FrontendHooks->hook_previewInfo';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = 'TYPO3\\CMS\\Frontend\\Hooks\\FrontendHooks->hook_previewInfo';
 ?>
\ No newline at end of file