Feature #69602

Simplify handling of backend layouts in frontend

Added by Georg Ringer about 4 years ago. Updated almost 2 years ago.

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

100%

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
  }
}

Associated revisions

Revision 3d4e8b16 (diff)
Added by Benni Mack about 4 years ago

[FEATURE] Add new TS option getData->pagelayout

Add a new TypoScript getData option to fetch the backend layout
of the current page, and if empty, use backend_layout_next_level.

Releases: master
Resolves: #69602
Change-Id: I82e01b1655c683c65f378f97558489cfeca36bf9
Reviewed-on: http://review.typo3.org/42723
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Gerrit Code Review about 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43116

#2 Updated by Gerrit Code Review about 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42723

#3 Updated by Gerrit Code Review about 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42723

#4 Updated by Gerrit Code Review about 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42723

#5 Updated by Gerrit Code Review about 4 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42723

#6 Updated by Benni Mack about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#7 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF