Issue Bug Closed

#96609Sorting of backend layout rows is not respected in page module (language mode)

Oliver Bartsch 01/21/22, 12:26 updated 10/04/22, 14:14

Description

Having a backend layout like this:

Page {
  title = Page
  config {
    backend_layout {
      colCount = 1
      rowCount = 2
      rows {
        1 {
          columns {
            1 {
              name = Bar
              colPos = 1
            }
          }
        }
        2 {
          columns {
            1 {
              name = Foo
              colPos = 0
            }
          }
        }
      }
    }
  }
}

Will in columns mode be displayed like:

—- Bar —-
—- Foo —-

But will be displayed in languages mode (also for defLangBinding) like:

—- Foo —-
—- Bar —-

The reason seems to be following line:

https://github.com/TYPO3/typo3/blob/main/typo3/sysext/backend/Resources/Private/Partials/PageLayout/LanguageColumns.html#L122

which is used to create the columns but does not consider the order in the backend layout configuration.

Reviews 2