[TYPO3-dev] Duplicate TCA columns
Florian Rival
contact at oktopuce.fr
Thu Apr 2 11:32:58 CEST 2015
Hi,
I have a problem with TCA columns added to the tt_news records : in the
BE, when editing a news there are duplicate TCA columns (two identical
tabs instead of one before).
The problem appears after migration of the Typo3 core from 6.2.6 to 6.2.11
I use the extension newscalendar which added tca columns to tt_news as
defined below :
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
'tt_news',
array(
'tx_newscalendar_state' => array(
'exclude' => 1,
'label' =>
'LLL:EXT:newscalendar/locallang_db.php:tt_news.tx_newscalendar_state',
'config' => array(
'type' => 'check',
'default' => 1,
)
),
'tx_newscalendar_calendardate' => array(
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' =>
'LLL:EXT:newscalendar/locallang_db.php:tt_news.tx_newscalendar_calendardate',
'config' => array(
'type' => 'input',
'size' => '10',
'max' => '20',
'eval' => 'datetime',
'checkbox' => '0',
'default' => '0'
)
),
'tx_newscalendar_calendardate_end' => array(
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' =>
'LLL:EXT:newscalendar/locallang_db.php:tt_news.tx_newscalendar_calendardate_end',
'config' => array(
'type' => 'input',
'size' => '10',
'max' => '20',
'eval' => 'datetime',
'checkbox' => '0',
'default' => '0'
)
)
)
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_news',
'--div--;LLL:EXT:newscalendar/locallang_db.xml:tt_news.tx_newscalendar_newscalendartab,tx_newscalendar_state;;;;1-1-1,tx_newscalendar_calendardate;;;;1-1-1,tx_newscalendar_calendardate_end;;;;1-1-1');
When I look in the TCA configuration :
$TCA['tt_news']['types']['0']['showitem'],
$TCA['tt_news']['types']['1']['showitem'] and
$TCA['tt_news']['types']['2']['showitem'], columns are duplicated.
Regards,
--
Re: [TYPO3-dev] How to call Extbase controller action from piBase-Plugin?
==================================================
Florian Rival
Oktopuce
tel.: +33-642-255-448
fax : +33-985-375-102
web: www.oktopuce.fr
==================================================
More information about the TYPO3-dev
mailing list