Project

General

Profile

Actions

Bug #96609

closed

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

Added by Oliver Bartsch almost 3 years ago. Updated about 2 years ago.

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

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
page module
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF