Closed mediaessenz closed 3 weeks ago
Ah, yeah TYPO3's TCA migration happens at the very end, after Content Blocks checks the TCA type. But you can simply define the type beforehand, when you know it:
fields:
- identifier: file_folder
useExistingField: true
type: Folder
You should do this anyway, if the re-used field is defined in TCA/Overrides of another extension: https://docs.typo3.org/p/contentblocks/content-blocks/main/en-us/Guides/ReuseExistingFields/Index.html#reusing-custom-fields
Let me know, if this works.
Nope, but this works for me:
fields:
- identifier: file_folder
type: Folder
prefixField: false
But this would cause the TCA and SQL generation of this field, which we don't want as it is already there. What happens if you use the other way?
I get the exception again.
Just look in the discussion at slack I had with André Kraus today
Okay, this might be really a bug then. Thanks. I will investigate.
Fixed for the v13 version.
RelationResolver is now a Core feature and based on TcaSchema with migrated TCA.
To reproduce create a content block (content element) with the following yaml config:
The field
file_folder
in this example come from EXT:bootrap_package and has this old school, but under TYPO3 12 still valid TCA configuration:This is the producted exception in the backend:
It seems that this backport is not able to handle this old school definition of the newly TYPO3 12 TCA type "folder".
One more thing I realized during debugging is, that the TCA inspector of the TYPO3 Backend shows this field config:
It seems there is some "streamlining on the flow" inside TYPO3 which changes the type
group
tofolder
but this seems to happen after content_block reads the tca.