Project

General

Profile

Actions

Feature #69602

closed

Simplify handling of backend layouts in frontend

Added by Georg Ringer about 9 years ago. Updated about 7 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
  }
}
Actions

Also available in: Atom PDF