[TASK] Set imagecols by default in PHP, not UserTSconfig 09/38009/3
authorBenjamin Mack <benni@typo3.org>
Sun, 22 Mar 2015 20:47:04 +0000 (21:47 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 22 Mar 2015 22:16:43 +0000 (23:16 +0100)
EXT:frontend defines "imagecols" with the default value "1"
but overrides it for TCAdefaults via UserTSconfig to "2".
This can be simplified by doing this directly in PHP.

Resolves: #65903
Releases: master
Change-Id: I72ef2d3f7845e298ccd3116340a887ae1a86e5f9
Reviewed-on: http://review.typo3.org/38009
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Configuration/TCA/tt_content.php
typo3/sysext/frontend/ext_localconf.php

index 5db3002..be8cbf2 100644 (file)
@@ -888,7 +888,7 @@ return array(
                                                8
                                        )
                                ),
-                               'default' => 1
+                               'default' => 2
                        )
                ),
                'imagecaption' => array(
index ee5fa7a..c3ba367 100644 (file)
@@ -51,7 +51,6 @@ if (TYPO3_MODE === 'FE') {
        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 {