Bug #85444

TCEFORM: some settings don't work

Added by David Bruchmann about 1 year ago. Updated 4 months ago.

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

0%

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

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

History

#1 Updated by David Bruchmann about 1 year 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

#2 Updated by Riccardo De Contardi 4 months 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

#3 Updated by David Bruchmann 4 months 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.

#4 Updated by Riccardo De Contardi 4 months ago

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

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

Regards.

Also available in: Atom PDF