PageLayoutResolver

Finds the proper layout for a page, using the database fields "backend_layout" and "backend_layout_next_level".

The most crucial part is that "backend_layout" is only applied for the CURRENT level, whereas backend_layout_next_level.

Used in TypoScript as "getData: pagelayout".

Internal

as this might get moved to EXT:core if usages in TYPO3 Backend are helpful as well.

Table of Contents

Methods

getLayoutForPage()  : string
Check if the current page has a value in the DB field "backend_layout" if empty, check the root line for "backend_layout_next_level" Same as TypoScript: field = backend_layout ifEmpty.data = levelfield:-2, backend_layout_next_level, slide ifEmpty.ifEmpty = default

Methods

getLayoutForPage()

Check if the current page has a value in the DB field "backend_layout" if empty, check the root line for "backend_layout_next_level" Same as TypoScript: field = backend_layout ifEmpty.data = levelfield:-2, backend_layout_next_level, slide ifEmpty.ifEmpty = default

public getLayoutForPage(array<string|int, mixed> $page, array<string|int, mixed> $rootLine) : string
Parameters
$page : array<string|int, mixed>
$rootLine : array<string|int, mixed>
Return values
string

        
On this page

Search results