feat: add a textimage element, add news design, add a footer
This commit is contained in:
13
packages/base/Configuration/Sets/SitePackage/page.typoscript
Normal file
13
packages/base/Configuration/Sets/SitePackage/page.typoscript
Normal file
@@ -0,0 +1,13 @@
|
||||
# Footer menu from a pid defined in constants: page.footerMenuPid
|
||||
lib.footerMenu = HMENU
|
||||
lib.footerMenu {
|
||||
special = directory
|
||||
special.value = {$page.footerMenuPid}
|
||||
1 = TMENU
|
||||
1 {
|
||||
NO {
|
||||
wrapItemAndSub = <li>|</li>
|
||||
stdWrap.noTrimWrap = | | |
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +1,23 @@
|
||||
@import './TypoScript/'
|
||||
|
||||
# Override tx_news templates
|
||||
plugin.tx_news {
|
||||
view {
|
||||
templateRootPaths.100 = EXT:base/Resources/Private/Extensions/News/Templates/
|
||||
partialRootPaths.100 = EXT:base/Resources/Private/Extensions/News/Partials/
|
||||
}
|
||||
}
|
||||
|
||||
# Define footerMenu here
|
||||
lib.footerMenu = HMENU
|
||||
lib.footerMenu {
|
||||
special = directory
|
||||
special.value = {$page.footerMenuPid}
|
||||
1 = TMENU
|
||||
1 {
|
||||
NO {
|
||||
wrapItemAndSub = <li>|</li>
|
||||
stdWrap.noTrimWrap = | | |
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user