-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkboxes in sheet sections always have the same id #1624
Comments
Thanks for the kind words Matthias! I'm afraid this one is most likely a TYPO3 core bug - it wouldn't be the first time we've seen similar misbehaviors for features associated with fields, in that they work differently outside and inside FlexForms (and inside/outside sheets in FlexForms). In this case it appears the field rendering mechanism (FormEngine) fals to take into consideration that the field is used inside a section. The solution would be to add a numeric part to the ID (and And that's a fix that has to be implemented in TYPO3 itself. In this case I'm not even able to provide a workaround since anything you could do with unique field names will have severe side effects regardless how you attempt to handle it. Just on a side note, Flux doesn't render any HTML for fields and can only provide the attributes that are supported by TCA. So we are limited to providing fields and their hierarchy and assuming (expecting) FormEngine to render everything correctly. PS: Since you're using section objects to create grids you may find #1582 interesting. You are probably aware of the drawbacks when removing or re-sorting section objects and this PR aims to completely solve that while also making the section-object-becomes-column logic easier to use. |
Hi Matthias, As a "workaround" you can save between creating a new object. It seems like TYPO3 is generating a new ID after saving the content element. Lukas |
Any news to fix this? I've created a bug tracker issue for this problem here: https://forge.typo3.org/issues/87429 |
Please follow the issue in the core tracker (and thanks for creating it!) - this is not a Flux problem so we can't address it from here. |
Environment:
Hi there,
first of all... thx for all your work and this nice and very helpful extension. 馃挴
I don麓t know if its a bug. This problem does not occur in TYPO3 8!
`<f:section name="Configuration">
<flux:form id="accordion">
<flux:form.option.group value="Inhaltselemente" />
<flux:form.option.icon value="/typo3conf/ext/my_template/Resources/Public/Images/Icons/Backend/previewicon_accordion.gif" />
</f:section>`
With TYPO3 9.5.0: If you apply more than one section the <flux:field.checkbox name="active" /> inside the section can麓t be selected, because they all got the same ID:
<input class="checkbox-input" value="1" ... id="data_tt_content_207_pi_flexform_active_0" type="checkbox">
also the label has the same "for" attribute:
<label class="checkbox-label" for="data_tt_content_207_pi_flexform_active_0">
So it麓s not possible to select them seperatly.
Maybe i am doing something wrong or is it a bug?
Thank you for your efforts and best regards
Matthias
The text was updated successfully, but these errors were encountered: