feat: add Home Page layout and styles, including header behavior and language support
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
mod.web_layout.BackendLayouts {
|
||||
home_page {
|
||||
title = LLL:EXT:base/Resources/Private/Language/locallang_be.xlf:backend_layout.home_page
|
||||
icon = EXT:base/Resources/Public/Images/BackendLayouts/default.png
|
||||
config {
|
||||
backend_layout {
|
||||
colCount = 1
|
||||
rowCount = 1
|
||||
rows {
|
||||
1 {
|
||||
columns {
|
||||
1 {
|
||||
name = LLL:EXT:base/Resources/Private/Language/locallang_be.xlf:backend_layout.column.content
|
||||
colPos = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
# PAGE CLASS
|
||||
lib.page.class = COA
|
||||
lib.page.class {
|
||||
// Page alias or id as fallback
|
||||
10 = TEXT
|
||||
10 {
|
||||
field = alias // uid
|
||||
noTrimWrap = |page-||
|
||||
}
|
||||
// Current level of the page within the tree structure
|
||||
20 = TEXT
|
||||
20 {
|
||||
data = level:1
|
||||
noTrimWrap = | pagelevel-||
|
||||
}
|
||||
// Language
|
||||
30 = TEXT
|
||||
30 {
|
||||
data = siteLanguage:languageId
|
||||
noTrimWrap = | language-||
|
||||
}
|
||||
// Backend layout
|
||||
40 = TEXT
|
||||
40 {
|
||||
data = pagelayout
|
||||
replacement.10 {
|
||||
search = pagets__
|
||||
replace =
|
||||
}
|
||||
ifEmpty = default
|
||||
noTrimWrap = | backendlayout-||
|
||||
}
|
||||
// Layout
|
||||
50 = TEXT
|
||||
50 {
|
||||
field = layout
|
||||
noTrimWrap = | layout-||
|
||||
ifEmpty = default
|
||||
}
|
||||
}
|
||||
@@ -3,10 +3,24 @@
|
||||
# Include constants
|
||||
#<INCLUDE_TYPOSCRIPT: source="FILE:EXT:base/Configuration/Sets/SitePackage/TypoScript/constants.typoscript">
|
||||
|
||||
# HELPER
|
||||
@import 'EXT:base/Configuration/Sets/SitePackage/TypoScript/Helper/PageClass.typoscript'
|
||||
|
||||
page = PAGE
|
||||
page {
|
||||
typeNum = 0
|
||||
shortcutIcon = EXT:base/Resources/Public/Favicons/favicon-96x96.png
|
||||
|
||||
bodyTagCObject = COA
|
||||
bodyTagCObject {
|
||||
10 = TEXT
|
||||
10.data = TSFE:id
|
||||
10.noTrimWrap = | id="p|"|
|
||||
20 =< lib.page.class
|
||||
20.stdWrap.noTrimWrap = | class="|"|
|
||||
wrap = <body|>
|
||||
}
|
||||
|
||||
10 = PAGEVIEW
|
||||
10 {
|
||||
paths {
|
||||
@@ -32,6 +46,7 @@ page {
|
||||
as = metanavigation
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
meta {
|
||||
@@ -88,6 +103,7 @@ page {
|
||||
}
|
||||
|
||||
footerMenuPid = {$footerMenuPid}
|
||||
|
||||
}
|
||||
|
||||
lib.contentElement {
|
||||
|
||||
Reference in New Issue
Block a user