#102291Add fluidAdditionalAttributes to Fieldset elements
Description
Currently it is not possible to pass additionalAttributes to “Fieldset” form elements.
For (nearly?) all other element it is possible.
In typo3/sysext/form/Resources/Private/Frontend/Partials/Fieldset.html just replace
<fieldset id="{element.uniqueIdentifier}" class="{element.properties.elementClassAttribute}">
with
<f:variable name="additionalAttributes" value="" />
<f:for as="value" key="key" each="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}">
<f:variable name="additionalAttributes" value='{additionalAttributes} {key}="{value}"' />
</f:for>
<fieldset id="{element.uniqueIdentifier}" class="{element.properties.elementClassAttribute}" {additionalAttributes -> f:format.raw()}>Reviews 4
Related issues 1
History 510
-
Gerrit Code Review pushed patch set 1 for main to change 81639 status
NewUnder Review 11/01/23, 05:49 -
Gerrit Code Review pushed patch set 2 for main to change 81639 11/01/23, 07:11
-
Georg Ringer changed Sprint Focus On Location Sprint 08/01/24, 14:02
-
Gerrit Code Review pushed patch set 3 for main to change 81639 08/01/24, 20:20
-
Gerrit Code Review pushed patch set 4 for main to change 81639 08/02/24, 20:06
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 85512 08/06/24, 07:27
-
Anonymous commented and changed status
Under ReviewResolved done0 %100 % 08/06/24, 07:50 -
Mathias Brodala changed Related to #104612 08/13/24, 12:42
-
Mathias Brodala commented 08/13/24, 12:42
Notice that this leads to an error if no
fluidAdditionalAttributesare set (which would be the default), see #104612 -
Benni Mack changed status
ResolvedClosed 10/15/24, 09:30
Applied in changeset commit:9f733d9eef6a6f6e33dce3d35ce41fc08c9d759a.