feat: design change to hero and add stats element
All checks were successful
Build / build (push) Successful in 2m28s
Build / deploy-stage (push) Successful in 3m30s
Build / switch-stage (push) Successful in 2m10s

This commit is contained in:
2024-12-12 23:52:34 +01:00
parent 7133371206
commit daa02d36d5
11 changed files with 207 additions and 96 deletions

View File

@@ -1,79 +1,74 @@
##############
#### PAGE ####
##############
# Include existing configuration
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:base/ContentBlocks" extensions="typoscript">
page = PAGE
page {
typeNum = 0
shortcutIcon = EXT:base/Resources/Public/Icons/favicon.ico
10 = PAGEVIEW
10 {
paths {
0 = EXT:base/Resources/Private/PageView/
1 = {$page.pageview.paths}
typeNum = 0
shortcutIcon = EXT:base/Resources/Public/Icons/favicon.ico
10 = PAGEVIEW
10 {
paths {
0 = EXT:base/Resources/Private/PageView/
1 = {$page.pageview.paths}
}
dataProcessing {
10 = files
10 {
references.fieldName = media
}
dataProcessing {
10 = files
10 {
references.fieldName = media
}
20 = menu
20 {
levels = 2
includeSpacer = 1
as = mainnavigation
}
30 = page-content
20 = menu
20 {
levels = 2
includeSpacer = 1
as = mainnavigation
}
30 = page-content
}
}
meta {
viewport = {$page.meta.viewport}
robots = {$page.meta.robots}
apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable}
meta {
viewport = {$page.meta.viewport}
robots = {$page.meta.robots}
apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable}
X-UA-Compatible = {$page.meta.compatible}
X-UA-Compatible {
attribute = http-equiv
}
X-UA-Compatible = {$page.meta.compatible}
X-UA-Compatible {
attribute = http-equiv
}
}
includeCSSLibs {
includeCSS {
main = EXT:base/Resources/Public/Scss/main.scss
}
}
includeJSLibs {
navigation = EXT:base/Resources/Public/JavaScript/navigation.js
}
includeCSS {
main = EXT:base/Resources/Public/Scss/main.scss
}
includeJSLibs {
navigation = EXT:base/Resources/Public/JavaScript/navigation.js
}
includeJS {
}
includeJSFooterlibs {
}
includeJSFooter {
test_scripts = EXT:base/Resources/Public/JavaScript/main.js
}
includeJSFooter {
test_scripts = EXT:base/Resources/Public/JavaScript/main.js
}
}
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:base/ContentBlocks" extensions="typoscript">
lib.contentElement {
layoutRootPaths {
0 = EXT:base/Resources/Private/ContentElements/Layouts/
}
layoutRootPaths {
0 = EXT:base/Resources/Private/ContentElements/Layouts/
}
}
lib.contentBlock {
partialRootPaths.0 < lib.contentElement.partialRootPaths.0
layoutRootPaths.0 < lib.contentElement.layoutRootPaths.0
settings < lib.contentElement.settings
lib.contentBlock {
partialRootPaths.0 < lib.contentElement.partialRootPaths.0
layoutRootPaths.0 < lib.contentElement.layoutRootPaths.0
settings < lib.contentElement.settings
}
# Ensure parseFunc removes empty paragraphs and whitespace
lib.parseFunc_RTE {
nonTypoTagStdWrap.encapsLines.stripEmptyLines = 1
nonTypoTagStdWrap.trim = 1
externalBlocks {
p {
stdWrap.stripNL = 1
}
}
}

View File

@@ -1,3 +1,13 @@
<?php
defined('TYPO3') or die();
// $GLOBALS['TCA']['tt_content']['columns']['cloonar_hero_bodytext']['config']['enableRichText'] = true;
// Add the new fields for the stats element to TCA if needed:
// This is only necessary if we need special configuration. By default Content Blocks handles field creation.
// Here we simply ensure that the fields appear in the backend form.
// Register the content element type in tt_content (only if needed, Content Blocks typically handle this automatically):
// $GLOBALS['TCA']['tt_content']['types']['cloonar_stats'] = [
// 'showitem' => 'header, number1, label1, number2, label2, number3, label3, number4, label4'
// ];
// The above is optional if Content Blocks extension is in use and config.yaml fields are applied automatically.