Project

General

Profile

Actions

Bug #69702

closed

FAL does not work in section of FlexForms

Added by Manuel Selbach over 8 years ago. Updated almost 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-09-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If I create a new 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.

When I save and edit the element, I can change the file.

If I add a new element the same issues appear.
When I save and edit it again it´s possible to choose a new file.

After saving the element the last selected file is in every element.

So I think there is no relation to each "dynamic" element in the section.

Example flex form:

<dynamic_col type="array">
    <section>1</section>
    <title>Column</title>
    <type>array</type>
    <el type="array">
        <container type="array">
            <type>array</type>
            <el type="array">
                <image type="array">
                    <TCEforms type="array">
                        <label>image</label>
                        <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 type="array">
                                <fieldname>image</fieldname>
                            </foreign_match_fields>
                            <foreign_label>uid_local</foreign_label>
                            <foreign_selector>uid_local</foreign_selector>
                            <foreign_selector_fieldTcaOverride type="array">
                                <config>
                                    <appearance>
                                        <elementBrowserType>file</elementBrowserType>
                                        <elementBrowserAllowed>jpg,png</elementBrowserAllowed>
                                    </appearance>
                                </config>
                            </foreign_selector_fieldTcaOverride>
                            <foreign_types type="array">
                                <numIndex index="2" type="array">
                                    <showitem>&#x2D;-palette&#x2D;-;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,&#x2D;-palette&#x2D;-;;filePalette</showitem>
                                </numIndex>
                            </foreign_types>
                            <maxitems>1</maxitems>
                            <appearance type="array">
                                <headerThumbnail>
                                    <field>uid_local</field>
                                    <width>64</width>
                                    <height>64</height>
                                </headerThumbnail>
                                <createNewRelationLinkTitle>Add new Image</createNewRelationLinkTitle>
                                <showPossibleLocalizationRecords>TRUE</showPossibleLocalizationRecords>
                                <showRemovedLocalizationRecords>TRUE</showRemovedLocalizationRecords>
                                <showSynchronizationLink>TRUE</showSynchronizationLink>
                                <enabledControls type="array">
                                    <info>TRUE</info>
                                    <delete>TRUE</delete>
                                    <localize>TRUE</localize>
                                </enabledControls>
                                <levelLinksPosition>both</levelLinksPosition>
                            </appearance>
                            <behaviour>
                                <localizationMode>select</localizationMode>
                                <localizeChildrenAtParentLocalization>TRUE</localizeChildrenAtParentLocalization>
                            </behaviour>
                        </config>
                    </TCEforms>
                </image>
            </el>
        </container>
    </el>
</dynamic_col>
Actions #1

Updated by Morton Jonuschat almost 8 years ago

  • Status changed from New to Rejected

The way FlexForms store their information in deeply nested XML structures and the way inline relations are stored in the database are inherently incompatible. There is no way to properly link information in the two stores in case of dynamic XML structures like sections.
Supporting inline relations in flextforms has never been a design goal and as it can be worked around using "proper" database structures rather easily it's not considered a bug and won't be fixed at this time.

Actions

Also available in: Atom PDF