Actions
Bug #101144
closedField type "group" with internal_type "db" seems not working with table "sys_file"
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2023-06-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
<image>
<TCEforms>
<label>Select Image</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>jpg,jpeg,png,svg</elementBrowserAllowed>
</appearance>
<allowed>sys_file</allowed>
<size>1</size>
<minitems>1</minitems>
<maxitems>1</maxitems>
<show_thumbs>1</show_thumbs>
</config>
</TCEforms>
</image>
The above configuration is working until TYPO3 v11, but in TYPO3 v12 it's not worked and is used in my many extensions with FlexForm <section> plugin options.
In my above screenshot, I didn't see files like before.
Files
Updated by Torben Hansen over 1 year ago
I do not think this is a bug. Your previous code was already a workaround to create a file relation in a flexform section.
- Flexform sections do not support file relations, since inline elements are not supported in sections.
internal_type
has been removed forgroup
in v12 - see https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Deprecation-96983-TCAInternal_type.html
"Hacky" workaround:
<image> <TCEforms> <label>Select Image</label> <config> <type>link</type> <allowedTypes> <numIndex index="0">file</numIndex> </allowedTypes> <minitems>0</minitems> <maxitems>1</maxitems> </config> </TCEforms> </image>
Updated by Christian Kuhn about 1 year ago
- Related to Bug #98668: elementBrowserType -> Bug in Group added
Updated by Christian Kuhn about 1 year ago
- Status changed from New to Closed
Hey.
Please see my comment on #98668. I hope it's ok to close here as well.
Actions