feat: add Home Page layout and styles, including header behavior and language support

This commit is contained in:
2025-04-21 12:24:16 +02:00
parent b1cb4d0208
commit 7ef39874e5
8 changed files with 206 additions and 5 deletions

View File

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

View File

@@ -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 {