1
2.. include:: ../../Includes.txt
3
4==================================================================
5Feature: #69602 - Simplify handling of backend layouts in frontend
6==================================================================
7
8See :issue:`69602`
9
10Description
11===========
12
13To avoid complex TypoScript for integrators, the handling of backend layouts has
14been simplified for the frontend.
15
16To get the correct backend layout, the following TypoScript code can be used:
17
18.. code-block:: typoscript
19
20	page.10 = FLUIDTEMPLATE
21	page.10 {
22	  file.stdWrap.cObject = CASE
23	  file.stdWrap.cObject {
24		key.data = pagelayout
25
26		default = TEXT
27		default.value = EXT:sitepackage/Resources/Private/Templates/Home.html
28
29		3 = TEXT
30		3.value = EXT:sitepackage/Resources/Private/Templates/1-col.html
31
32		4 = TEXT
33		4.value = EXT:sitepackage/Resources/Private/Templates/2-col.html
34	  }
35	}
36
37Using  `data = pagelayout` is the same as using as
38
39.. code-block:: typoscript
40
41	field = backend_layout
42	ifEmpty.data = levelfield:-2,backend_layout_next_level,slide
43	ifEmpty.ifEmpty = default
44
45
46.. index:: TypoScript, Frontend
47