Deprecation: #109306 - Deprecate form editor stage template rendering functions
See forge#109306
Description
The Form Editor stage component provided a set of JavaScript helper functions
for template-based rendering of form elements in the stage area. These
functions were designed to be called from subscribers to the
view/ PubSub event, which is the
extension point for custom form element rendering in the stage.
With the introduction of the
<typo3- and
<typo3- web components (see
Feature: #107058 - Simplify registration of a custom form element), the built-in template-based helper
functions have been superseded. The
view/ event
remains available, and extension authors may continue to subscribe to it
to implement fully custom stage rendering logic.
The following exported functions from
@typo3/ are deprecated:
eachTemplate Property () renderSimple Template () renderSimple Template With Validators () renderCheckbox Template () renderSelect Templates () renderFile Upload Templates () create— only used by the legacy template-based rendering path. Web component-based elements handle their toolbar via theAbstract View Form Element Toolbar () toolbarproperty ofConfig <typo3-form- form- element- stage- item>
In addition, all Fluid partial templates in
EXT: are
deprecated, as they were designed for use with the template-based rendering
approach described above:
SimpleTemplate. fluid. html SelectTemplate. fluid. html FileUpload Template. fluid. html ContentElement. fluid. html Fieldset.fluid. html StaticText. fluid. html Page.fluid. html SummaryPage. fluid. html _ElementToolbar. fluid. html _UnknownElement. fluid. html
Impact
Extensions that call any of the deprecated helper functions will receive IDE deprecation hints and TypeScript compiler warnings. The deprecated Fluid templates will emit an HTML comment in the rendered stage area indicating their deprecation. All deprecated functions and templates will be removed in TYPO3 v15.
Affected installations
All extensions that:
- call any of the deprecated JavaScript helper functions (including
create), typically from a subscriber of theAbstract View Form Element Toolbar () view/event, orstage/ abstract/ render/ template/ perform - reference any of the deprecated Fluid partial templates via
formin their prototype configuration.Editor Partials
Migration
Two migration paths are available:
Option 1: Use the built-in web component (recommended)
Remove the custom JavaScript subscriber and omit the
form stage partial configuration from your form
element's YAML definition. The Form Editor will then render the element
automatically using the built-in
<typo3- web component.
See Feature: #107058 - Simplify registration of a custom form element for full details.
Option 2: Implement custom rendering logic in the event subscriber
If you need to keep using the
view/ event, replace calls to
the deprecated helper functions with your own DOM manipulation logic.