[TYPO3-mvc] Additional parameters in ExtensionManagementUtility::getFileFieldTCAConfig()
Jan Kornblum
jan.kornblum at gmx.de
Wed Jul 15 16:24:17 CEST 2015
Dear newsgroup,
i am using
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig()
like this:
ExtensionManagementUtility::getFileFieldTCAConfig(
'images',
array(
'minitems' => 0,
'maxitems' => 3,
// START - Additional parameters
'foreign_match_fields' => array(
'fieldname' => 'images',
'tablenames' => 'tx_myext_domain_model_test',
'table_local' => 'sys_file',
),
// END - Additional parameters
),
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
)
...to be able to create a FAL FileReference in a controller context
like explained in this example:
http://www.typo3tiger.de/blog/post/extbase-fal-filereference-im-controller-erzeugen.html
This works fine, but i'm not sure if this is the right way and if this
might be compatible with future versions of TYPO3 / Extbase, as the
default getFileFieldTCAConfig() configuration (and, for example
tt_content's field "image") is missing my examples parameters
('foreign_match_fields').
Does anybody know a little more about this?
Kind regards, Jan
More information about the TYPO3-project-typo3v4mvc
mailing list