FluidTYPO3 / flux

TYPO3 extension Flux: Dynamic Fluid FlexForms
https://fluidtypo3.org
145 stars 214 forks source link

Inline FAL field within form object #616

Closed witrin closed 10 years ago

witrin commented 10 years ago

I hope this is not already reported or known. I can't find any related anyhow.

I'm using latest development from vhs, flux and fluidcontent with TYPO3 6.2.3 and the following template:

<flux:form.sheet name="elements" label="Items">
        <flux:form.section name="elements">
            <flux:form.object name="item">
                <flux:field.input name="title" label="Title" />
                <flux:field.input name="link" label="Link">
                    <flux:wizard.link activeTab="page" />
                </flux:field.input>
                <flux:field.inline.fal name="image" enabled="1" label="Image" multiple="FALSE" minItems="1" maxItems="1" collapseAll="1" showThumbs="1" enabledControls="{info: 'TRUE', dragdrop: 'TRUE', localize: 'TRUE'}" />
            </flux:form.object>
        </flux:form.section>
</flux:form.sheet>

I'm facing two problems with this configuration:

  1. When I create a new object item there is only the button Create new relation for the field image visible. When use this button to add an image or file I get Wrong configuration in <hash> (e.g. hash = 2ab65...) and the file isn't added. But when I have saved the object item without an image or file the second button Select & upload files appears and I'm able to add a file without any problems.
  2. When I create a second item object its image field is always identical with the first one an vice versa. So a can't have different image fields for different item objects.
witrin commented 10 years ago

The second problem is already reported at #478. Sorry!

witrin commented 10 years ago

@NamelessCoder You have closed #478 with the reason it's already reported in #431. But I think #431 targets only the first problem here, which is not that bad (your suggesting using something like if). But it doesn't targets the second problem that all FAL fields in several object having the same values after saving, which makes it useless. Anyway you wrote further this should be fixed by https://review.typo3.org/#/c/30633/. But unfortunately it is not. I've tested the mentioned case above with TYPO3 CMS 6.2.4 and the issues still exist. Did I miss something here?

witrin commented 10 years ago

To make the second problem with TYPO3 CMS 6.2.4 more clear:

  1. The initial situation 1
  2. After adding a file 2
  3. After saving the whole record 3
witrin commented 10 years ago

Ok now I found the right issue #468. Sorry to bother you all here. Unfortunately currently I'm not able to contribute or sponsor the feature (https://github.com/FluidTYPO3/flux/tree/workbench/relationsettings). So I'll wait. Thanks!