TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,32 @@
.. include:: /Includes.rst.txt
.. _feature-64386:
====================================================
Feature: #64386 - Public Content Object Registration
====================================================
See :issue:`64386`
Description
===========
A new global option is now available to register and/or extend/overwrite content objects like TEXT.
A list of all available Content Objects that was previously registered within the main ContentObjectRenderer class
is now moved to the global array `$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']` which allows for modifications
via third-party extensions.
Example: Register a new Content Object EXAMPLE in a third-party extension
.. code-block:: php
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['EXAMPLE'] = Acme\MyExtension\ContentObject\ExampleContentObject::class
The registered class must be a subclass of `TYPO3\CMS\Frontend\ContentObject\AbstractContentObject`.
For future autoloading mechanisms, it is encouraged to place the custom ContentObject class inside
`EXT:myextension/Classes/ContentObject/`.
.. index:: PHP-API, Frontend