Mit der Option "pagelayout" hat sich das Handling, um Backend-Layouts an die Ausgabe im Frontend anzubinden vereinfacht.

TypoScript (neu)

page {
	10 = FLUIDTEMPLATE
	10 {
		file.stdWrap.cObject = CASE
		file.stdWrap.cObject {
			key.data = pagelayout
			default = TEXT
			default.value = EXT:myext/Resources/Private/Templates/Default.html
			2 = TEXT
			2.value = EXT:myext/Resources/Private/Templates/Tempalte-2.html
			3 = TEXT
			3.value = EXT:myext/Resources/Private/Templates/Tempalte-3.html
		}
	}
}

TypoScript (bisher)

page {
	10 = FLUIDTEMPLATE
	10 {
		file.stdWrap.cObject = CASE
		file.stdWrap.cObject {
			field = backend_layout
			ifEmpty.data = levelfield:-2,backend_layout_next_level,slide
			ifEmpty.ifEmpty = default
			default = TEXT
			default.value = EXT:myext/Resources/Private/Templates/Default.html
			2 = TEXT
			2.value = EXT:myext/Resources/Private/Templates/Tempalte-2.html
			3 = TEXT
			3.value = EXT:myext/Resources/Private/Templates/Tempalte-3.html
		}
	}
}




Kommentare