Project

General

Profile

Actions

Bug #85444

closed

TCEFORM: some settings don't work

Added by David Bruchmann over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2018-07-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

It's possible to override any defined items with something like this:

TCEFORM {
  tt_content {
    layout {
      config.max = 7
      altLabels {
        0 = Standard
        1 = Slider
        2 = Breite 50%
        3 = Breite 33.33%
        4 = Breite 66.66%
        5 = Breite 40%
        6 = Breite 60%
      }
   }
}

But
TCEFORM.tt_content.layout.config.max = 7
and
TCEFORM.tt_content.layout.addItems = 4,5,6
have no impact and if the default TCA (with four items for that field) is not overwritten or extended, then by the PageTS above not more than 4 fields will be shown (same amount like in TCA).

TYPO3-Version: 9.3, latest from GitHub


Files

TCEforms-itemlist.png (5.42 KB) TCEforms-itemlist.png David Bruchmann, 2018-06-30 20:28
Actions #1

Updated by David Bruchmann over 6 years ago

The attached image shows 4 items despite 7 are conf like above and also with

TCEFORM.tt_content.layout.config.max = 7
TCEFORM.tt_content.layout.addItems = 4,5,6

Actions #2

Updated by Riccardo De Contardi over 5 years ago

Pardon me for the very late reply, but...

TCEFORM.tt_content.layout.addItems = 4,5,6

cannot work; that should be something like (see example in https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/TceForm.html#additems):

TCEFORM.tt_content.layout.addItems{
  4 = example 4
  5 = example 5
  6 = example 6
}

Also, I am not sure that TCEFORM.tt_content.layout.config.max would work with a select type; it is not even cited here https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/TceForm.html#config

Actions #3

Updated by David Bruchmann over 5 years ago

Thank's for verification and explanation, that helps.
I think the issue can be closed, in the TCA of 9.5 the max. value is not used, so I never expect problems there.

Actions #4

Updated by Riccardo De Contardi over 5 years ago

  • Status changed from New to Closed
  • Target version deleted (next-patchlevel)

Thank you very much for your kind and quick reply. Closing :)

Regards.

Actions

Also available in: Atom PDF