[TYPO3-core] RFC: #4690: TCAdefaults.tt_content.imagecols = 1 is missing
Ralf Hettinger
ng at ralfhettinger.de
Thu Jul 10 22:20:08 CEST 2008
Hi,
+1 based on reading an testing.
Won't do any harm but maybe avoid some head scratching. Which seems fair
enough to me.
Ralf
Steffen Kamper schrieb:
> 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
>
More information about the TYPO3-team-core
mailing list