Skip to content

Commit

Permalink
[TASK] Update palettes configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteeb authored Jun 2, 2020
1 parent 36be618 commit 2a87f17
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php


\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', [
'link' => [
'label' => 'LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:link.formlabel',
Expand Down Expand Up @@ -40,7 +39,6 @@
],
]);


\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
Expand All @@ -49,17 +47,15 @@
'after'
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette(
'tt_content',
'linklabel',
'link,linklabel'
);
$GLOBALS['TCA']['tt_content']['palettes']['linklabel'] = [
'showitem' => 'link,linklabel',
'label' => 'LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:palettes.linklabel.title'
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette(
'tt_content',
'linklabelconfig',
'link,linklabel,linkconfig'
);
$GLOBALS['TCA']['tt_content']['palettes']['linklabelconfig'] = [
'showitem' => 'link,linklabel,linkconfig',
'label' => 'LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:palettes.linklabelconfig.title'
];

// use the same configuration for visible backend fields as "Textmedia"
if (!$GLOBALS['TCA']['tt_content']['defaultTypeConfiguration']) {
Expand All @@ -70,6 +66,6 @@
$GLOBALS['TCA']['tt_content']['types']['cta'] = [
'showitem' => $GLOBALS['TCA']['tt_content']['defaultTypeConfiguration']['begin'] . '
layout,
--palette--;LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:palettes.linklabelconfig.title;linklabelconfig,
--palette--;;linklabelconfig,
' . $GLOBALS['TCA']['tt_content']['defaultTypeConfiguration']['end']
];

0 comments on commit 2a87f17

Please sign in to comment.