Commit 0fd9ec62 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Merge branch 'v10-upgrade' into 'main'

[BUGFIX] Use proper TCA config for TYPO3 v10.x

See merge request !10
parents eb79c2fc fb73103b
Pipeline #17419 passed with stages
in 1 minute and 53 seconds
......@@ -10,9 +10,7 @@ return [
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => true,
'versioningWS' => 2,
'versioning_followPages' => true,
'versioningWS' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
......@@ -25,12 +23,9 @@ return [
],
'iconfile' => 'EXT:randombanners/Resources/Public/Icons/tx_randombanners_domain_model_banner.gif',
],
'interface' => [
'showRecordFieldList' => 'cruser_id, pid, sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, link, email, logo, clicked_this_month, clicked_last_month',
],
'types' => [
'1' => [
'showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, link, email, logo, clicked_this_month, clicked_last_month,--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime, endtime',
'showitem' => 'sys_language_uid,--palette--,l10n_parent,l10n_diffsource,hidden,--palette--;;1,name,link,email,logo,clicked_this_month,clicked_last_month,--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime,endtime',
],
],
'palettes' => [
......@@ -39,15 +34,15 @@ return [
'columns' => [
'sys_language_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => [
['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', '-1'],
['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', '0'],
['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', '-1'],
['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', '0'],
],
'default' => 0,
'fieldWizard' => [
......@@ -59,7 +54,6 @@ return [
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'config' => [
'type' => 'select',
......@@ -69,7 +63,6 @@ return [
],
'foreign_table' => 'tx_randombanners_domain_model_banner',
'foreign_table_where' => 'AND tx_randombanners_domain_model_banner.pid=###CURRENT_PID### AND tx_randombanners_domain_model_banner.sys_language_uid IN (-1,0)',
'showIconTable' => false,
],
],
'l10n_diffsource' => [
......@@ -96,26 +89,26 @@ return [
],
'starttime' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:starttime_formlabel',
'config' => [
'type' => 'input',
'size' => 16,
'max' => 20,
'eval' => 'datetime',
'default' => 0,
'renderType' => 'inputDateTime',
['behaviour' => ['allowLanguageSynchronization' => true]],
],
],
'endtime' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:endtime_formlabel',
'config' => [
'type' => 'input',
'size' => 16,
'max' => 20,
'eval' => 'datetime',
'default' => 0,
'renderType' => 'inputDateTime',
['behaviour' => ['allowLanguageSynchronization' => true]],
],
],
'name' => [
......@@ -150,7 +143,6 @@ return [
],
'logo' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:randombanners/Resources/Private/Language/locallang_db.xlf:tx_randombanners_domain_model_banner.logo',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'logo',
......
......@@ -24,5 +24,9 @@
"typo3/cms": {
"extension-key": "randombanners"
}
},
"require-dev": {
"saschaegerer/phpstan-typo3": "^0.13.3",
"rector/rector": "^0.11.56"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment