Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As far as i know, BackendLayout IDs / Keys should now be alphanumeric #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Configuration/TSconfig/Page.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TCEFORM.tt_content.header_layout{
## Backend-Layouts definieren
mod.web_layout.BackendLayouts {

1 {
DefaultTemplate {
title = Default Layout (Header + 2 Spalten)
config {
backend_layout {
Expand Down Expand Up @@ -52,7 +52,7 @@ mod.web_layout.BackendLayouts {
}
}
}
2 {
DetailTemplate {
title = Presentation Detail Layout
config {
backend_layout {
Expand Down Expand Up @@ -110,7 +110,7 @@ mod.web_layout.BackendLayouts {
}
}
}
3 {
OneColumn {
title = Default Layout (Header + Content)
config {
backend_layout {
Expand Down
60 changes: 43 additions & 17 deletions Configuration/TypoScript/Library/2000_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,27 +98,53 @@ page.10 {
}
}

#file = {$resDir}/Resources/Private/Templates/DefaultTemplate.html
}

page.10.file.stdWrap.cObject = CASE
page.10.file.stdWrap.cObject {
key.data = pagelayout

# Default Template
default = TEXT
default.value = {$resDir}/Resources/Private/Templates/DefaultTemplate.html
## Template file name must be the same as the ID / Name of the backendlayout
## Defined in Page.txt
## ID should alphnumerical
templateName = TEXT
templateName.stdWrap {
cObject = TEXT
cObject {
data = levelfield:-2,backend_layout_next_level,slide
override.field = backend_layout

pagets__1 < .default
#required = 1

detail = TEXT
detail.value = {$resDir}/Resources/Private/Templates/DetailTemplate.html
split {
token = pagets__
cObjNum = 1
1.current = 1
}
}

pagets__2 < .detail
ifEmpty = Default

onecol = TEXT
onecol.value = {$resDir}/Resources/Private/Templates/OneColumn.html

pagets__3 < .onecol
}

}

# no unnecessary repetitions
# Directory has already been set
# Name of the template is defined in Page.txt as Key / ID
#page.10.file.stdWrap.cObject = CASE
#page.10.file.stdWrap.cObject {
# key.data = pagelayout
#
# # Default Template
# default = TEXT
# default.value = {$resDir}/Resources/Private/Templates/DefaultTemplate.html
#
# pagets__1 < .default
#
# detail = TEXT
# detail.value = {$resDir}/Resources/Private/Templates/DetailTemplate.html
#
# pagets__2 < .detail
#
# onecol = TEXT
# onecol.value = {$resDir}/Resources/Private/Templates/OneColumn.html
#
# pagets__3 < .onecol
#
#}