What is a tsconfig file

vimeo.com/135548508

-> from TYPO3 7.4 onwards, BE layouts can be outsourced to files -> and integrated via TSconfig
-> A BE layout has already been completed -> with name: Default layout (2 columns)
-> this was stored in the T3 directory BE-Layouts (above the root page)
-> Default layout (2 columns) should now be swapped out in the TSconfig file
-> Now open the default layout (2 columns) -> Click on the BE layout icon in the List module
-> click on edit -> copy the entire TS script from the configuration field
-> then deactivate this BE layout directly!
-> now switch to one of the normal pages -> e.g. to the root page -> the BE layout of 4 columns can then be seen
-> switch to PhpStorm -> open Page.txt there -> add a new code block -> write a comment beforehand
-> Define backend layouts
-> then start the BE layout with ID = 1 (on my website) -> the ID of the BE layout can be different on another website

## Define backend layouts
mod.web_layout.BackendLayouts {

    1 {
title = Default Layout (2 columns)
config {
backend_layout {
colCount = 3
rowCount = 1
rows {
                    1 {
columns {
                            1 {
name = Main Content
colspan = 2
colPos = 0
                            }
                            2 {
name = aside
colPos = 1
                            }
                        }
                    }
                }
            }
        }
    }
}

-> This "rewritten" BE layout should of course have the same name -> as the BE layout before
-> namely -> Default Layout (2 columns)
-> i.e. the entire configuration script is entered here -> in the Page.txt including the 1 at the very beginning
-> in the BE on the root page in the Page module -> under "only this page" -> and "subpage of this page" -> select the new entry from "DB layout (2 columns)"
-> under the old value is now "value is not allowed" -> the old value has been deactivated

-> then on the Page.txt -> add second BE layout -> add with the BE layout ID = 2 -> the BE layout does not have to exist in the BE layouts directory
-> It is important that the configuration is correct -> in the corresponding TS configuration block -> in the Page.txt file
-> the second BE layout on the BE layout ID = 2

    2 {
title = Test layout (1 column)
config {
backend_layout {
colCount = 1
rowCount = 1
rows {
                    1 {
columns {
                            1 {
name = Main Content
colspan = 2
colPos = 0
                            }

                        }
                    }
                }
            }
        }
    }

-> the folder BE layouts in the page tree -> can be deleted -> the actual BE layouts are now -> in the file Page.txt -> as TypoScript
-> as documentation -> I leave the folder -> I deactivate it

-> BE layouts via the Page.txt -> and the file ext_localconf.php -> only works from TYPO3 version 7.4
-> specify this dependency -> in the configuration!
-> this is specified in Resources / ext_emconf.php -> under 'depends' and 'typo3'
-> here should be: '6.4.0-7.9.99'

'depends' => array (
'typo3' => '6.4.0-7.9.99',
..
        ),