#94543Make optional the use of FILE: in the ds-attribute of flex-field in the TCA, if EXT: is used
Description
The Use of ‘EXT:<filepath>‘ is common for declaring al filepath on various place in TYPO3 and in the TCA. (IconAPI, …) Only in the definition of DS, it is uncommen.<br>Only for the filedefinition of Flexforms you have to use ‘FILE:EXT:’. <br>If you use EXT: it is clear, that the string will points to an file. The information FILE: is not needed.</filepath>
See Patch
Additionl:
It took me more than an hour, to understand my mistake. The exceptionmessage was meaningless. Please change it.
I mean the exceptionmessage in typo3\sysext\backend\Classes\Form\FormDataProvider\TcaFlexProcess.php in line 48.
Instead of
throw new \RuntimeException(
'Data structure identifier must be set, typically by executing TcaFlexPrepare data provider before',
1480765571
);
use
throw new \RuntimeException(
'Data structure identifier must be set, typically by executing TcaFlexPrepare data provider before. Check, if the filepath in the DS-field begins with FIILE: or EXT:',
1480765571
);Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 1
History 1
-
Georg Ringer commented and changed status
NewRejected <span data-processor="relativetime" data-value="2025-03-30T09:59:11+00:00" > 03/30/25, 09:59 </span>
Hey,
thanks for creating the issue. However this usecase is not uncommon.
FILE:EXThas also been used in the (now) deprecated<INCLUDE_TYPOSCRIPT: source="FILE:EXT:.../Configuration/TypoScript/setup.typoscript">syntax.however we will try to improve the exception message to be more helpful