Issue Bug Closed

#105292page-content dataprocessor should fallback to colPos 0 if no backend-layout is defined

Lina Wolf 10/13/24, 11:27 updated 04/16/25, 18:11

Description

For simple pages with only one column in the TYPO3 backend the content can be input in the page module without the definition of a content element. So from that POV a backend-layout is not neccessary.

However when no backend layout is defined and or chosen the page-content dataprocessor returns an empty array.

I would suggest to let it return the content of colPos “0” as key “main” by default so that a backend layout is not mandatory to use the page-content dataprocessor

Reviews 0

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

History 1

  1. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2025-04-16T18:11:05+00:00" > 04/16/25, 18:11 </span>

    see https://github.com/typo3/typo3/blob/d3246716f0aaf74b2525209448c27cc5e14b923e/typo3/sysext/backend/Classes/View/BackendLayout/DefaultDataProvider.php#L40

    the default BE layout defines already the backend layout with identifier main

            backend_layout {
                colCount = 1
                rowCount = 1
                rows {
                    1 {
                        columns {
                            1 {
                                name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.1
                                colPos = 0
                                identifier = main
                            }
                        }
                    }
                }
            }

    tested that on dev-main, works. therefore closing issue