From 12a5fa1be36bf46bb7c59309f4181692a56eb6f4 Mon Sep 17 00:00:00 2001 From: Sybille Peters Date: Tue, 23 Jul 2024 09:31:05 +0200 Subject: [PATCH 1/3] [BUGFIX] No longer refer to removed hooks for preview Resolves: #538 --- Documentation/PageTsconfig/Mod/WebLayout.rst | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Documentation/PageTsconfig/Mod/WebLayout.rst b/Documentation/PageTsconfig/Mod/WebLayout.rst index a1c0bb4..d2aae03 100644 --- a/Documentation/PageTsconfig/Mod/WebLayout.rst +++ b/Documentation/PageTsconfig/Mod/WebLayout.rst @@ -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 ` + #. Register an event listener for :ref:`PageContentPreviewRenderingEvent ` + + For checking for event listeners, see the list + :guilabel:`System > Configuration > Event Listeners (PSR-14)`. .. _pageweblayoutpreview-example: From 70034073eb53b3519744c12bd58391bc3b053b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Fr=C3=B6mken?= Date: Sat, 27 Jul 2024 12:56:03 +0200 Subject: [PATCH 2/3] Update Documentation/PageTsconfig/Mod/WebLayout.rst --- Documentation/PageTsconfig/Mod/WebLayout.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/PageTsconfig/Mod/WebLayout.rst b/Documentation/PageTsconfig/Mod/WebLayout.rst index d2aae03..97ada8e 100644 --- a/Documentation/PageTsconfig/Mod/WebLayout.rst +++ b/Documentation/PageTsconfig/Mod/WebLayout.rst @@ -305,8 +305,8 @@ tt_content.preview Have a look at :php:`\TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer` and the various methods for customizing the preview rendering: - #. :ref:`Register a preview renderer ` - #. Register an event listener for :ref:`PageContentPreviewRenderingEvent ` + #. :ref:`Register a preview renderer ` + #. Register an event listener for :ref:`PageContentPreviewRenderingEvent ` For checking for event listeners, see the list :guilabel:`System > Configuration > Event Listeners (PSR-14)`. From 971c1e11d28d7ffdc805440d4631f96cc0532e96 Mon Sep 17 00:00:00 2001 From: Sybille Peters Date: Sun, 28 Jul 2024 09:09:37 +0200 Subject: [PATCH 3/3] Add hint about EXT:lowlevel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com> --- Documentation/PageTsconfig/Mod/WebLayout.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/PageTsconfig/Mod/WebLayout.rst b/Documentation/PageTsconfig/Mod/WebLayout.rst index 97ada8e..0bec091 100644 --- a/Documentation/PageTsconfig/Mod/WebLayout.rst +++ b/Documentation/PageTsconfig/Mod/WebLayout.rst @@ -309,7 +309,7 @@ tt_content.preview #. Register an event listener for :ref:`PageContentPreviewRenderingEvent ` For checking for event listeners, see the list - :guilabel:`System > Configuration > Event Listeners (PSR-14)`. + :guilabel:`System > Configuration > Event Listeners (PSR-14)` (available with installed EXT:lowlevel). .. _pageweblayoutpreview-example: