Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 12.4] [BUGFIX] No longer refer to removed hooks for preview #540

Merged
merged 3 commits into from
Jul 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions Documentation/PageTsconfig/Mod/WebLayout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,18 @@ tt_content.preview

.. note::

This only works, if there is no hook registered for this content type, you may want to check this
section in the :guilabel:`System > Configuration` module:
This only works if the registered preview renderer for the content type
uses Fluid rendering and the rendering is not overridden by using
an event listener for the event :php:`\TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent`.

.. code-block:: php
:caption: Search for registrations of this hook
Have a look at :php:`\TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer`
and the various methods for customizing the preview rendering:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']
['tt_content_drawItem']['content_element_xy'];
#. :ref:`Register a preview renderer <t3coreapi:ConfigureCE-Preview>`
#. Register an event listener for :ref:`PageContentPreviewRenderingEvent <t3coreapi:PageContentPreviewRenderingEvent>`

For checking for event listeners, see the list
:guilabel:`System > Configuration > Event Listeners (PSR-14)` (available with installed EXT:lowlevel).


.. _pageweblayoutpreview-example:
Expand Down
Loading