Feature #69602

Simplify handling of backend layouts in frontend

Added by Georg Ringer almost 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-09-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

To avoid complex TypoScript for all integrators, simplify the way to get the desired backend layout.

Currently you need a TypoScript code like


page.10 = FLUIDTEMPLATE
page.10 {
  file.stdWrap.cObject = CASE
  file.stdWrap.cObject {
    key.data = levelfield:-2,backend_layout_next_level,slide
    key.override.field = backend_layout

    default = TEXT
    default.value = fileadmin/template/home.html

    3 = TEXT
    3.value = fileadmin/template/1-col.html

    4 = TEXT
    4.value = fileadmin/template/2-col.html
  }
}

now it is getting easier by using


page.10 = FLUIDTEMPLATE
page.10 {
  file.stdWrap.cObject = CASE
  file.stdWrap.cObject {
    key.data = backend_layout

    default = TEXT
    default.value = fileadmin/template/home.html

    3 = TEXT
    3.value = fileadmin/template/1-col.html

    4 = TEXT
    4.value = fileadmin/template/2-col.html
  }
}

Also available in: Atom PDF