Issue Bug Closed

#107553BeforeFlexFormDataStructureParsedEvent not triggered for certain content creation actions

Theo Langstraat 09/27/25, 06:43 updated 09/28/25, 19:03

Description

Description:*
In the TYPO3 backend, new content elements can be added using various buttons, such as “+ Create new content” in the Border section, Before Content, Normal, or via the “+ New” button in the toolbar above the content list. Upon testing, it appears that only the very first “+ Create new content” button triggers the BeforeFlexFormDataStructureParsedEvent. All other buttons — including those placed between existing content elements and the “+ New” button — do not trigger the event.
*Impact:*
As a result, the FlexForm is correctly initialized only when using the first button. In all other cases, the default, unmodified FlexForm is loaded, leading to inconsistent behavior and incorrect configuration of content elements.
*Steps to reproduce:

  1. Navigate to a page in the backend with existing content elements.
  2. Add a new content element using:
    • The first “+ Create new content” button → Event is triggered.
    • Any button between existing content elements → Event is not triggered.
    • The “+ New” button in the toolbar → Event is not triggered.
  1. Observe the FlexForm behavior and verify whether BeforeFlexFormDataStructureParsedEvent is triggered.

Expected behavior:
The BeforeFlexFormDataStructureParsedEvent should be triggered consistently for all methods of creating new content elements, ensuring proper FlexForm initialization.
*TYPO3 version:*
13.4.17
*PHP version:*
8.3.24
*Additional context:*
This issue affects custom content elements that rely on FlexForm manipulation via the mentioned event. It may also impact extensions or integrations that depend on dynamic FlexForm structures.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.