[TYPO3-mvc] FAL - create FileReference from within a frontend controller action

Jan Kornblum jan.kornblum at gmx.de
Mon Nov 3 18:33:37 CET 2014


Hi Helmut,

i have to come back to this a last time, i hope. Everything is fine and 
the code works. But there is one strange thing with it: I've got *two* 
FAL fields, one called "images", another called "logo". They are 
defined in TCA as follows:

'config' => 
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
	'images',
	array(
		'maxitems' => 5,
		'foreign_match_fields' => array(
			'fieldname' => 'images',
			'tablenames' => 'tx_myext_domain_model_location',
			'table_local' => 'sys_file',
		),
	),
	$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),

And the same as above for the other field "logo" with the two 
occurences of "images" replaced.

After having added images to the field "images" (either from within the 
controller action or else even from the typo3 backend), the list module 
shows the same uids for the other field "logo". Although there haven't 
been any images assigned to the other field! I've updated the reference 
index, too, but this doesn't make any difference. Image assignement 
seems to be correct even when both fields have files assigned. But 
where do the "same" uids come from showing up in the list module?

Kind regards, Jan




More information about the TYPO3-project-typo3v4mvc mailing list