[TYPO3-english] tt_content field from extension no longer shown in 4.5
Loek Hilgersom
loek at netcoop.nl
Sun Apr 10 15:19:15 CEST 2011
Hi,
I'm struggling with an issue after upgrading to TYPO3 4.5.x: an additional field
added to tt_content by the extension rzcolorbox ('Colorbox slideshow') no longer
shows up in the backend forms. In 4.4 there was no problem, I've tried a few
different 4.5 installations (it's on 4.5.2 currently) and they all have the same
issue; it may have something to do with the re-arranged tabs and fields in the
tt_content backend forms.
I'm not sure if the problem is with TYPO3-core or the extension.
In the extension, the field is defined in ext_tables.php with the code below.
Is there a mistake there? (twice the loadTCA method is a bit strange, but
probably not causing trouble, and mixing $GLOBALS[TCA] and $TCA seems a bit odd)
Or have there been changes in the way you add fields to existing tables?
Thanks for any pointers,
Loek
$tempColumns = array (
'tx_rzcolorbox_slideshow' => array (
'exclude' => 1,
'label' =>
'LLL:EXT:rzcolorbox/locallang_db.xml:tt_content.tx_rzcolorbox_slideshow',
'config' => array (
'type' => 'check',
)
),
);
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addTCAcolumns('tt_content',$tempColumns,1);
$GLOBALS['TCA']['tt_content']['palettes']['7']['showitem'] .=
',tx_rzcolorbox_slideshow';
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi2']='layout,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi2']='pi_flexform';
More information about the TYPO3-english
mailing list