Project

General

Profile

Actions

Bug #102291

open

Add fluidAdditionalAttributes to Fieldset elements

Added by Henrik Ziegenhain 6 months ago. Updated 6 months ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Form Framework
Start date:
2023-10-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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()}>
Actions #1

Updated by Gerrit Code Review 6 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81639

Actions #2

Updated by Gerrit Code Review 6 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81639

Actions

Also available in: Atom PDF