Issue Bug Closed

#95390TCEFORM.pages.layout does not allow adding items with integer "names"

Bastian Stargazer 09/28/21, 19:07 updated 10/11/22, 14:00

Description

In TYPO3 v10 there is only one select-entry on page-edit > Appearance > Frontend Layout [layout] called “Default [0]”.

In prior versions it was possible to add new select-entries with this TSConfig:

TCEFORM {
  pages {
    layout {
      altLabels.0 = Default-Renamed
      addItems.1 = Test-1
      addItems.test2 = Test-2
    }
  }
}

However that does’t work anymore. With this code, the default entry is successfully renamed to “Default-Renamed”. The “Test-1” entry does not show up at all, but IMO this was the former expected valid statement. Instead, “Test-2” shows, but can’t be selected because the database field-definition for pages.layout is set to INTEGER (storing the string-value resets the field to 0).

Not sure what will be the fix here: maybe the database-migration script should set pages.layout to VARCHAR as well like for the other layout-fields, e.g. pages.backend_layout and tt_content.layout ?

TYPO3 v10.4.21

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.