[TYPO3-core] RFC: #4690: TCAdefaults.tt_content.imagecols = 1 is missing

Steffen Kamper steffen at sk-typo3.de
Thu Jul 10 17:15:52 CEST 2008


Hi,

this is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=

Branches: 4.2, trunk

Problem:
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 ;-)

Solution:
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

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

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4690.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080710/5d3724dc/attachment.txt 


More information about the TYPO3-team-core mailing list