Skip to content

Commit

Permalink
[TASK] TCA for tca labels
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Apr 15, 2024
1 parent 5a5d85f commit 523ae3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions Configuration/TCA/tx_news_domain_model_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
defined('TYPO3') or die;

$ll = 'LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:';
$typo3Version = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class)->getMajorVersion();

return [
'ctrl' => [
Expand Down Expand Up @@ -65,11 +64,7 @@
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => $typo3Version < 12 ? [
['', 0],
] : [
['label' => '', 'value' => 0],
],
'items' => ['label' => '', 'value' => 0],
'foreign_table' => 'tx_news_domain_model_link',
'foreign_table_where' => 'AND tx_news_domain_model_link.pid=###CURRENT_PID### AND tx_news_domain_model_link.sys_language_uid IN (-1,0)',
'default' => 0,
Expand Down
7 changes: 1 addition & 6 deletions Configuration/TCA/tx_news_domain_model_tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

$ll = 'LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:';
$configuration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\GeorgRinger\News\Domain\Model\Dto\EmConfiguration::class);
$versionInformation = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class);

return [
'ctrl' => [
Expand Down Expand Up @@ -45,11 +44,7 @@
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => $versionInformation->getMajorVersion() < 12 ? [
['', ''],
] : [
['label' => '', 'value' => ''],
],
'items' => ['label' => '', 'value' => ''],
'foreign_table' => 'tx_news_domain_model_tag',
'foreign_table_where' => 'AND tx_news_domain_model_tag.pid=###CURRENT_PID### AND tx_news_domain_model_tag.sys_language_uid IN (-1,0)',
'fieldWizard' => [
Expand Down

0 comments on commit 523ae3e

Please sign in to comment.