[TYPO3-english] TCA override accessible only for specific ext.
ondro
ogrosko at gmail.com
Wed Sep 16 14:50:17 CEST 2015
Hey
I have extend my sys_file_reference table
$tmp_bb_helpers_columns = array(
'thumbnail' => array(
'exclude' => 1,
'label' => 'LLL:EXT:bb_helpers/Resources/Private/Language/locallang_db.xlf:tx_bbhelpers_domain_model_filereference.thumbnail',
'config' => array (
'type' => 'group',
'internal_type' => 'file',
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
'uploadfolder' => 'uploads/pics',
'show_thumbs' => 1,
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
)
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_file_reference', $tmp_bb_helpers_columns);
$GLOBALS['TCA']['sys_file_reference']['palettes']['basicoverlayPalette'] = array(
'showitem' => $GLOBALS['TCA']['sys_file_reference']['palettes']['basicoverlayPalette']['showitem'] .',--linebreak--,thumbnail',
'canNotCollapse' => TRUE
);
is it possible to see this extended field only for specific extension. i.e. I have ext. news and dce installed and in both I can see this new field. I want to see it only for ext. dce
Is it possible to configure it in TCA?
More information about the TYPO3-english
mailing list