[TYPO3-core] RFC: #4690: TCAdefaults.tt_content.imagecols = 1 is missing
    Ingmar Schlecht 
    ingmar at typo3.org
       
    Thu Jul 10 20:27:13 CEST 2008
    
    
  
Hi Steffen,
I don't see why this should be necessary.
If imagecols is set to 0 it simply means default and default is one 
column. What is the practical problem with the way it is at the moment?
cheers
Ingmar
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
> 
-- 
Ingmar Schlecht
TYPO3 Association Active Member
    
    
More information about the TYPO3-team-core
mailing list