Bug #16806
closedTCAdefaults.tt_content.imagecols = 1 is missing
0%
Description
in tbl_tt_content.php is something missing, so this setting never works:
line 570 ff:
items' => Array (
Array('1', 0),
Array('2', 2),
...
so there is only one element missing ;-)
change the lines to following and all works:
'config' => Array (
'type' => 'select',
'items' => Array (
Array('1', 1),
Array('2', 2),
Array('3', 3),
Array('4', 4),
Array('5', 5),
Array('6', 6),
Array('7', 7),
Array('8', 8)
),
'default' => 1
(issue imported from #M4690)
Files
Updated by Steffen Kamper almost 18 years ago
does anyone recognizes ? This is a simple bugfix and should be done for next release.
Updated by Jens Schmietendorf almost 17 years ago
The changes doesn't work,
the bug still remains in 4.1.5 :-(
TCAdefaults.tt_content.imagecols = X
doesn´t work
Updated by Steffen Kamper almost 17 years ago
I checked again, and changing
Array('1', 1)
doesn't break any functionality.
TCAdefaults.tt_content.imagecols = 1 now works but doesn't change anything, as default => 0 anyway takes first entry in selectbox.
So changing is more a cosmetic issue.
Updated by Stefan Beylen almost 17 years ago
hm, strange... i changed the value to Array('1', 1) but the problem persists
i always get 2 imagecols as default.
the whole array looks now like this:
'imagecols' => Array (
'label' => 'LLL:EXT:cms/locallang_ttc.php:imagecols',
'config' => Array (
'type' => 'select',
'items' => Array (
Array('1', 1),
Array('2', 2),
Array('3', 3),
Array('4', 4),
Array('5', 5),
Array('6', 6),
Array('7', 7),
Array('8', 8)
),
'default' => 1
)
),
Updated by Sacha Vorbeck over 16 years ago
In TYPO3 the default value from tbl_ttcontent.php or the value you set as default via User TSconfig is only taken into account when you create a new content element text and then switch it to image. If you create the content element via the new content element wizard and select an image directly, the value will always be 2.
Updated by Steffen Kamper over 16 years ago
i uploaded the patch and it works for me (trunk)
TCAdefaults.tt_content.imagecols = 0 => sets it to 1
TCAdefaults.tt_content.imagecols = 1 => sets it to 1
TCAdefaults.tt_content.imagecols = x => sets it to x
It won't break any prior setting
Updated by Stefan Neufeind about 12 years ago
I experience the exact same problem that Sacha Vorbeck described. Value is 1 if you create an element of type "text" and later change it to "image". If you directly create an element of type "image" default is 2.
User-TS setting used: TCAdefaults.tt_content.imagecols = 1
TYPO3 4.5.19
Updated by Floyd Hermes over 11 years ago
Experienced the same problem in typo3 v. 4.5.23
There is no possibility to set TCAdefaults.tt_content.imagecols = 1
for the content element "Images Only".
It does works for the CE "Text & Images".