feat: add a textimage element, add news design, add a footer
All checks were successful
Build / build (push) Successful in 2m32s
Build / deploy-stage (push) Successful in 3m0s
Build / switch-stage (push) Successful in 2m8s

This commit is contained in:
2024-12-13 01:07:46 +01:00
parent 9f410a339e
commit 52e962ae83
19 changed files with 546 additions and 22 deletions

View File

@@ -1,13 +1,12 @@
<?php
defined('TYPO3') or die();
// 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.
// Force imageorient to only have items 25 and 26
$GLOBALS['TCA']['tt_content']['columns']['imageorient']['config'] = [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['LLL:EXT:base/Resources/Private/Language/locallang_db.xlf:imageorient.25', 25],
['LLL:EXT:base/Resources/Private/Language/locallang_db.xlf:imageorient.26', 26],
],
];