Project

General

Profile

Actions

Bug #15429

closed

Type selectbox doesn't set the correct content type when CType options is reduced.

Added by Peter Klein almost 19 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2006-01-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

On a sysFolder in my site I have the following PAGE TSConfig, which removes various fields from tt_content. (I only need the IMAGE type, with 2 fields: Image & Link)

TCEFORM.tt_content {
CType.removeItems = header,text,textpic,bullets,table,uploads,multimedia,mailform,search,login,menu,shortcut,list,html,splash,script,div,templavoila_pi1,templavoila_pi2
CType.disableNoMatchingValueElement=1

sys_language_uid.disabled = 1
colPos.disabled = 1
spaceBefore.disabled = 1
spaceAfter.disabled = 1
section_frame.disabled = 1
sectionIndex.disabled = 1
linkToTop.disabled = 1
header_position.disabled = 1
header_layout.disabled = 1
header_link.disabled = 1
date.disabled = 1
imageorient.disabled = 1
imagecols.disabled = 1
image_noRows.disabled = 1
imageborder.disabled = 1
imagewidth.disabled = 1
imageheight.disabled = 1
image_zoom.disabled = 1
image_compression.disabled = 1
image_effects.disabled = 1
imagecaption.disabled = 1
imagecaption_position.disabled = 1
fe_group.disabled = 1
}

The problem is that when I remove all other content types from the selectbox (The CType.removeItems line), I get a "CURRENT VALUE IS NOT AVAILABLE" option in the selectbox. According to the manual:
http://typo3.org/documentation/document-library/doc_core_tsconfig/gt_TCEFORM/
Then the following code "CType.disableNoMatchingValueElement=1" remove that msg and the selector box will default to the first element in the selector box. All that works, BUT the element form displayed is the TEXT element, and not the first element (IMAGE).
(And since the selectbox only has one element (Image), it is not possible to change the type.)
The correct behaviour would be to display the IMAGE object (or whatever object is first in the list), and not the TEXT object (specially if it has been disabled!)

(issue imported from #M2286)


Files

2286.patch (659 Bytes) 2286.patch Administrator Admin, 2006-06-19 16:44
Actions

Also available in: Atom PDF