Project

General

Profile

Actions

Bug #100810

closed

Site settings as colPos in BackendLayouts lead to error

Added by David Mellen over 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Category:
-
Start date:
2023-05-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Hi,

since I updated to v12, using constants from site settings in Page TSConfig won't work anymore.

This is my page tsconfig:

mod {
  web_layout {
    BackendLayouts {
      default {
        title = default
        config {
          backend_layout {
            colCount = 1
            rowCount = 1
            rows {
              1 {
                columns {
                  1 {
                    name = main
                    colPos = {$backendLayouts.colPos.main}
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

and my site settings:

backendLayouts:
  colPos:
    main: 0

If I clear the cache and open a page in the backend it works, but once I reload without clearing the cache it won't work.

The backend just shows "main(No edit access)" for the column. If I use the language comparison view I'll get the following error:

#1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Undefined array key "{$backendLayouts.colPos.main}" in /var/www/html/vendor/typo3/cms-backend/Classes/ViewHelpers/LanguageColumnViewHelper.php line 34


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions

Also available in: Atom PDF