[TYPO3-mvc] Configuration/TCA/Overrides not working
Matthew Colton
mat.colton at web-xs.de
Fri May 1 12:10:35 CEST 2015
Hi all,
I'm trying to add an extra table and an extra field to an existing
table. It is no problem to add an extra table. But my effort to add an
extra field to an existing table fails.
Well, actually it works as long as I ignore the Typo3 Extbase guidelines. :)
The following works fails in
Configuration/TCA/Overrides/tx_cal_location.php
but works in
ext_tables.php:
***********************************************************
$calDistrictTempColumns = array(
'tx_calext_district_id' => array(
'exclude' => 0,
'label' =>
'LLL:EXT:calext/Resources/Private/Language/locallang_db.xlf:tx_cal_location.tx_calext_district_id',
'config' => array(
'type' => 'select',
'items' => array(
array('', 0),
),
'foreign_table' => 'tx_calext_domain_model_district',
'foreign_table_where' => '',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
)
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
'tx_cal_location',
$calDistrictTempColumns,
TRUE
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_cal_location',
'tx_calext_district_id'
);
***********************************************************
Any ideas why this fails?
Thanks in advance,
Mat
More information about the TYPO3-project-typo3v4mvc
mailing list