[BUGFIX] Shared defaults for CE wizard using TCAdefaults
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
index 8813f71..66e5bf1 100644 (file)
@@ -1,21 +1,29 @@
 <?php
 if (!defined('TYPO3_MODE')) {
-       die ('Access denied.');
+       die('Access denied.');
 }
-
-t3lib_extMgm::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
 ');
-
-t3lib_extMgm::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
@@ -39,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 {
@@ -60,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 {
@@ -171,37 +178,28 @@ mod.wizards.newContentElement {
 }
 
 ');
-
 $TYPO3_CONF_VARS['SYS']['contentTable'] = 'tt_content';
 $TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic.php';
-
 $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:&tx_cms_treelistCacheUpdate';
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][]  = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][]     = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
+// Registering hooks for the treelist cache
+$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
-       tslib_mediaWizardManager::registerMediaWizardProvider('tslib_mediaWizardCoreProvider');
-               // Register eID provider for ExtDirect for the frontend
+       // Register the core media wizard provider
+       \TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager::registerMediaWizardProvider('TYPO3\\CMS\\Frontend\\MediaWizard\\MediaWizardProvider');
+       // Register eID provider for ExtDirect for the frontend
        $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = PATH_tslib . 'extdirecteid.php';
 }
-
-       // Register search keys
+// Register search keys
 $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:tx_cms_fehooks->hook_previewInfo';
-
+// Register hook to show preview info
+$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