Issue Bug Closed

#102291Add fluidAdditionalAttributes to Fieldset elements

Henrik Ziegenhain 10/30/23, 15:52 updated 10/15/24, 09:30

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

History 510

  1. Gerrit Code Review pushed patch set 1 for main to change 81639 status New Under Review 11/01/23, 05:49

  2. Gerrit Code Review pushed patch set 2 for main to change 81639 11/01/23, 07:11

  3. Georg Ringer changed Sprint Focus On Location Sprint 08/01/24, 14:02

  4. Gerrit Code Review pushed patch set 3 for main to change 81639 08/01/24, 20:20

  5. Gerrit Code Review pushed patch set 4 for main to change 81639 08/02/24, 20:06

  6. Gerrit Code Review pushed patch set 1 for 12.4 to change 85512 08/06/24, 07:27

  7. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 08/06/24, 07:50

    Applied in changeset commit:9f733d9eef6a6f6e33dce3d35ce41fc08c9d759a.

  8. Mathias Brodala changed Related to #104612 08/13/24, 12:42

  9. Mathias Brodala commented 08/13/24, 12:42

    Notice that this leads to an error if no fluidAdditionalAttributes are set (which would be the default), see #104612

  10. Benni Mack changed status Resolved Closed 10/15/24, 09:30