Bug #57956
Inline element (FAL) dont work in a section
0%
Description
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:
<config>
<type>inline</type>
<foreign_table>sys_file_reference</foreign_table>
<foreign_field>uid_foreign</foreign_field>
<foreign_sortby>sorting_foreign</foreign_sortby>
<foreign_table_field>tablenames</foreign_table_field>
<foreign_match_fields>
<fieldname>img</fieldname> <!-- Name of variable! -->
</foreign_match_fields>
<foreign_label>uid_local</foreign_label>
<foreign_selector>uid_local</foreign_selector>
<foreign_selector_fieldTcaOverride>
<config>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai</elementBrowserAllowed>
</appearance>
</config>
</foreign_selector_fieldTcaOverride>
<minitems>0</minitems>
<maxitems>99</maxitems>
<appearance>
<useSortable>1</useSortable>
<headerThumbnail>
<field>uid_local</field>
<width>64</width>
<height>64</height>
</headerThumbnail>
<showPossibleLocalizationRecords>1</showPossibleLocalizationRecords>
<showRemovedLocalizationRecords>1</showRemovedLocalizationRecords>
<showSynchronizationLink>1</showSynchronizationLink>
<enabledControls>
<info>0</info>
<new>0</new>
<dragdrop>1</dragdrop>
<sort>0</sort>
<hide>1</hide>
<delete>1</delete>
<localize>1</localize>
</enabledControls>
<createNewRelationLinkTitle>LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
</appearance>
<behaviour>
<localizationMode>select</localizationMode>
<localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
</behaviour>
</config>
Related issues
Updated by Armin Vieweg almost 7 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.
Updated by Frank Gerards over 6 years ago
why ? FAL surely knows to which ARRAY-INDEX inside the sections-array it belongs...
Maybe look at the implementation of FAL inside Tabs/Sections in the FLUIDTYPO3/fluidcontent_bootstrap Extension in addition with the FLUIDTYPO3.FLUX...
Updated by Armin Vieweg over 6 years ago
FAL surely knows to which ARRAY-INDEX inside the sections-array it belongs...
How?
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.
Updated by Lukas Rüegg over 6 years ago
I am having the same issue with inline flexform forms. Why has this issue been closed? Imo this is a serious LTS core issue which impairs the usability of the backend. Focusing on "new" features is not a solution...
Updated by Gerrit Code Review over 5 years ago
- Status changed from Closed to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39050
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39050
Updated by Gerrit Code Review over 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39050
Updated by Marc Hirdes over 5 years ago
I have the same problem. Will the changes adopted in TYPO3 6.2, please?
Updated by Bernd Niehues over 5 years ago
Not yet merged, right? So is it really resolved
+1 for 6.2 adoption...
Updated by Lukas Rüegg over 5 years ago
The patch was reviewed but not merged (CANNOT MERGE), but the issue is STILL marked as resolved. This does not make any sense.
Would you please open it agein? Otherwise we would have to open a new issue again.
Updated by Armin Vieweg almost 3 years ago
- Has duplicate Bug #83885: DCE FAL image file nesting in section failed added