[BUGFIX] Shared defaults for CE wizard using TCAdefaults 81/21981/2
authorJigal van Hemert <jigal@xs4all.nl>
Thu, 27 Sep 2012 19:42:19 +0000 (21:42 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 5 Jul 2013 21:54:53 +0000 (23:54 +0200)
The page TSconfig settings for the New Content Element wizard have
a higher priority than the user TSconfig TCAdefaults. Settings which
are not different for each CE type should be set in TCAdefaults. If
they are set in the tt_content_defVals the values will be different
if the editor selected the right CE type directly than if the editor
switched CE type.

Change-Id: I8b84b3059b17f88a3d674b6faae889844cae9c67
Fixes: #41434
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/21981
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/cms/ext_localconf.php

index bc7678d..546ad5d 100644 (file)
@@ -8,6 +8,7 @@ if (!defined('TYPO3_MODE')) {
        options.saveDocNew.pages = 0
        options.saveDocNew.sys_file = 0
        options.disableDelete.sys_file = 1
+       TCAdefaults.tt_content.imagecols = 2
 ');
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
 mod.wizards.newContentElement {
@@ -38,7 +39,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 {
@@ -192,4 +192,4 @@ $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';
-?>
\ No newline at end of file
+?>