Inline element (FAL) dont work in a section
I create a section and in this an inline element of FAL.
If I create a new dce element on the page, then I get the error message:
"Wrong configuration in table xxxxxxx"
The foreign_match_fields fieldname is changed to the field name of element.
But i think the problem is the non existent section ID?
When i save and edit the element, i can change the file.
How can the problem be solved?
Here the field configuration:
<fieldname>img</fieldname> <!-- Name of variable! -->
#1 Updated by Armin Vieweg almost 4 years ago
- Status changed from New to Closed
- Assignee set to Michael Melster
This will not work. Because of the same reason DAM does not work inside of sections.
The problem is, that FAL creates a relation. The relation contains the uid of content element and the fieldname. Of this is just a flexform, with "virtual" fields, but that will work as well. The thing is, if you create now several section entries inside of this one "virtual" field, FAL does not know to which of them it belongs to.
So FAL (or DAM) will be never able to get used in sections, AFAIK.
#3 Updated by Armin Vieweg over 3 years ago
FAL surely knows to which ARRAY-INDEX inside the sections-array it belongs...
sys_file_reference stores the defined tablename and fieldname. Each entry in the section would need an own identifier/fieldname. But you define the fieldname before the section has any entries. TYPO3 is also not appending an index or something like that to the fieldname.
I'm interested how this would work (without overwriting the whole TYPO3 backend behavior). But I don't see a way.
In DCE 2.0 sections will be made by IRRE/Inline fields. I focus on that, instead using this old template voila way of doing sections.