[FEATURE] Introduce PreviewRenderer pattern
This introduces a new approach to registering and rendering previews; for content elements initially but possible to apply to any record type, and possible to call from other contexts than the PageLayoutView, e.g. AJAX-based preview rendering. Basically, this turns the old hook approach into a proper pattern where preview renderers are registered for a specific CType and must implement proper interfaces. A Resolver pattern is also introduced with a standard implementation and a standard renderer is registered for backwards compatibility. Resolves: #78450 Releases: master Change-Id: Ibf85d9b50b7bc6506d72c1ee63078373eaf9e433 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/50389 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Susanne Moog <look@susi.dev> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/backend/Classes/Preview/PreviewRendererInterface.php 82 additions, 0 deletions...sext/backend/Classes/Preview/PreviewRendererInterface.php
- typo3/sysext/backend/Classes/Preview/PreviewRendererResolverInterface.php 33 additions, 0 deletions...kend/Classes/Preview/PreviewRendererResolverInterface.php
- typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php 450 additions, 0 deletions...ackend/Classes/Preview/StandardContentPreviewRenderer.php
- typo3/sysext/backend/Classes/Preview/StandardPreviewRendererResolver.php 88 additions, 0 deletions...ckend/Classes/Preview/StandardPreviewRendererResolver.php
- typo3/sysext/backend/Classes/View/BackendLayout/Grid/GridColumnItem.php 20 additions, 191 deletions...ackend/Classes/View/BackendLayout/Grid/GridColumnItem.php
- typo3/sysext/backend/Resources/Private/Partials/PageLayout/Record/Footer.html 6 additions, 6 deletions.../Resources/Private/Partials/PageLayout/Record/Footer.html
- typo3/sysext/backend/ext_localconf.php 5 additions, 0 deletionstypo3/sysext/backend/ext_localconf.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-90348-PageLayoutViewClassInternalIsDeprecated.rst 4 additions, 2 deletions...ecation-90348-PageLayoutViewClassInternalIsDeprecated.rst
- typo3/sysext/core/Documentation/Changelog/master/Feature-78450-IntroducePreviewRendererPattern.rst 158 additions, 0 deletions.../master/Feature-78450-IntroducePreviewRendererPattern.rst
- typo3/sysext/frontend/Configuration/TCA/tt_content.php 1 addition, 0 deletionstypo3/sysext/frontend/Configuration/TCA/tt_content.php
Please register or sign in to comment