Project

General

Profile

Actions

Feature #103917

closed

Make it possible to add elements to the result array in FormEngine for all fields

Added by Sybille Peters 6 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
Start date:
2024-05-26
Due date:
% Done:

0%

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

Description

There are several methods to customize nodes in FormEngine / add own nodes:

  • renderType
  • "user" type
  • FieldInformation, FieldControl, FieldWizard

However if someone wants to make some changes to all nodes, it is difficult, since it is not possible to XCLASS abstract classes and the classes the nodes inherit from are all abstract (e.g. AbstractNode)

Possible implementation

Add an event which is dispatched in AbstractNode::initializeResultArray(), making it possible to modify the result array.

Possible applications

1. add additional JavaScript modules, stylesheets or language files
2. I have been looking into alternative of a JavaScript displayCond solution (dynamicDisplayCond) and in order to apply this one would have to add additional JavaScript. This can be done, for example with a custom FieldInformation, but this would then have to be added to every TCA / Flexform where one wishes to use this. Also, if a JavaScript file is added in a general way, this does not make it possible to pass table name, uid of the record and additional data


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #99384: Dynamic refresh instead of save and reload in backend forms with displayCond and reloadRejected2022-12-16

Actions
Actions #1

Updated by Sybille Peters 6 months ago

  • Related to Feature #99384: Dynamic refresh instead of save and reload in backend forms with displayCond and reload added
Actions #2

Updated by Sybille Peters 2 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF