Project

General

Profile

Actions

Bug #16806

closed

TCAdefaults.tt_content.imagecols = 1 is missing

Added by Steffen Kamper almost 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2006-12-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

4690.diff (645 Bytes) 4690.diff Administrator Admin, 2008-07-09 16:14
4690_v2.diff (5.36 KB) 4690_v2.diff Administrator Admin, 2009-01-01 19:04

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #22712: userTSconfig: TCAdefaults.tt_content.imagecols = 1 does not workClosed2010-05-25

Actions
Related to TYPO3 Core - Bug #41434: userTSconfig: TCAdefaults.tt_content.imagecols = 1 does not always workClosedJigal van Hemert2012-09-27

Actions
Actions #1

Updated by Steffen Kamper almost 18 years ago

does anyone recognizes ? This is a simple bugfix and should be done for next release.

Actions #2

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

Actions #3

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.

Actions #4

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
)
),
Actions #5

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.

Actions #6

Updated by Benni Mack over 16 years ago

Any news here?

Actions #7

Updated by Steffen Kamper over 16 years ago

i will look to it again

Actions #8

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

Actions #9

Updated by Steffen Kamper almost 16 years ago

committed v2 to trunk rev 4638

Actions #10

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

Actions #11

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".

Actions #12

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF