Project

General

Profile

Actions

Feature #100859

closed

Add ID to FlexFormElementContainer rendering

Added by Alexander Kohlheyer over 1 year ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2023-05-11
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Please add an ID (or at least an unique class in the current frame) in file

\typo3\sysext\backend\Classes\Form\Container\FlexFormElementContainer.php

at approx. line 141 (or 137 in v12):
$html[] = '<div class="form-section" id="' . htmlspecialchars($flexFormFieldName) . '">';

I'm not sure if this relevant for the future (as mentioned here [[https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/FormEngine/Rendering/Index.html]] in the first note, it should have vanished in v9?), but as this file is still present in v12 I guess this feature-request is still adequate for v11 + v12.

Reason behind this: we're working with several Flexforms (gridelements) and try to organize the form fields in the backend via CSS, as it's not possible to do this otherwise (afaik). It would help to distinguish the fields with specific id's or classes.

Other solutions are appreciated as I don't know if there's a smarter way.

Actions #1

Updated by Oliver Hader over 1 year ago

  • Category changed from Backend User Interface to FormEngine aka TCEforms

For repeating FlexForm sections this id attribute might be duplicated. Thus, using a dedicated class or data attribute would be the alternative here.

Actions #2

Updated by Gerrit Code Review over 1 year 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/+/79065

Actions #3

Updated by Gerrit Code Review over 1 year ago

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

Actions #4

Updated by Georg Ringer over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack 10 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF