user9073987
user9073987

Reputation:

How do you set the default Backend Layout in TYPO3

I am using the method of defining Backend Layouts in a TSconfig file in a site package extension.

mod {
  web_layout {
    BackendLayouts {
      # pagets__onecolumn 
        onecolumn {
          title = One column
            config {
              backend_layout {
                colCount = 1
                rowCount = 1
                rows {
                  1 {
                    columns {

... etc

I would now like to define one of my own BE-Layouts as default.

I found a method of excluding BE-Layouts (such as "none") in the select list in page properties:

TCEFORM.pages.backend_layout_next_level.removeItems= -1
TCEFORM.pages.backend_layout.removeItems= -1

But what I really want is for TYPO3 to automatically assign my default BE-Layout to new pages (and not use the TYPO3 default).


Using TYPO3 8 (latest version)

Upvotes: 2

Views: 2128

Answers (1)

Jo Hasenau
Jo Hasenau

Reputation: 2684

In the TYPO3 page records there are two fields for backend layouts on the current page and backend layouts on subpages. The latter is assigned automatically to each of the pages in the tree below the page where you set it.

So you should just assign your default layout as backend layout on subpages within the root page and it will become the default for any page, that hasn't got a layout set itself.

You can override that by selecting another layout on a subpage, that will override the default setting for that particular part of the tree.

Upvotes: 3

Related Questions