Adjust TCA for page and content
This commit is contained in:
parent
de13e1935b
commit
d4b7ab3276
3 changed files with 50 additions and 0 deletions
|
@ -7,9 +7,12 @@
|
||||||
$extensionKey
|
$extensionKey
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$languagePath = 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_tca.xlf:' . $tableName . '.';
|
||||||
|
|
||||||
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
|
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
|
||||||
'columns' => [
|
'columns' => [
|
||||||
'lastUpdated' => [
|
'lastUpdated' => [
|
||||||
|
'label' => $languagePath . 'lastUpdated',
|
||||||
'config' => [
|
'config' => [
|
||||||
'eval' => 'date,int',
|
'eval' => 'date,int',
|
||||||
],
|
],
|
||||||
|
|
36
Configuration/TCA/Overrides/tt_content.php
Normal file
36
Configuration/TCA/Overrides/tt_content.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
(function (string $extensionKey, string $table, string $ctype) {
|
||||||
|
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$table], [
|
||||||
|
'types' => [
|
||||||
|
$ctype => [
|
||||||
|
'showitem' => implode(',', [
|
||||||
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general',
|
||||||
|
'--palette--;;general',
|
||||||
|
'--palette--;;headers',
|
||||||
|
'image',
|
||||||
|
'--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance',
|
||||||
|
'--palette--;;frames',
|
||||||
|
'--palette--;;appearanceLinks',
|
||||||
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language',
|
||||||
|
'--palette--;;language',
|
||||||
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access',
|
||||||
|
'--palette--;;hidden',
|
||||||
|
'--palette--;;access',
|
||||||
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories',
|
||||||
|
'categories',
|
||||||
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes',
|
||||||
|
'rowDescription',
|
||||||
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended',
|
||||||
|
]),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'columns' => [
|
||||||
|
'header' => [
|
||||||
|
'config' => [
|
||||||
|
'eval' => 'required, trim',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
})('ds_site', 'tt_content', 'image');
|
11
Resources/Private/Language/locallang_tca.xlf
Normal file
11
Resources/Private/Language/locallang_tca.xlf
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
|
||||||
|
<file source-language="en" datatype="plaintext">
|
||||||
|
<header/>
|
||||||
|
<body>
|
||||||
|
<trans-unit id="pages.lastUpdated">
|
||||||
|
<source>Published</source>
|
||||||
|
</trans-unit>
|
||||||
|
</body>
|
||||||
|
</file>
|
||||||
|
</xliff>
|
Loading…
Reference in a new issue