TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _feature-66369:
|
||||
|
||||
===============================================
|
||||
Feature: #66369 - Added new element browser API
|
||||
===============================================
|
||||
|
||||
See :issue:`66369`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
The former code monster class `ElementBrowser` has been split into dedicated parts of functionality.
|
||||
Specifically the functionality of selecting elements for the FormEngine and the code parts for creating
|
||||
links, used in FormEngine and RTE, have been moved into separate APIs.
|
||||
|
||||
Each type of element, which can be selected in FormEngine, has its own element browser class.
|
||||
You may add your own special type by registering your own element browser in your `ext_tables.php` as follows:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
if (TYPO3_MODE === 'BE') {
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers'][<identifier>] = \Vendor\Ext\TheClass::class;
|
||||
}
|
||||
|
||||
The registered class is expected to implement the `\TYPO3\CMS\Recordlist\Browser\ElementBrowserInterface` interface.
|
||||
|
||||
|
||||
.. index:: PHP-API, Backend
|
||||
Reference in New Issue
Block a user