Project

General

Profile

Actions

Bug #96417

closed

previewRendererResolver override does not fully work

Added by Henrik Elsner over 2 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-12-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Currently the "previewRendererResolver" does not fully work.
In `\TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem? both functions `getPreview` and `getFooterInfo` call the original and seem not to resolve the one set as mentioned by the docs.
Instead the `StandardPreviewRendererResolver` is called

https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/ContentElements/CustomBackendPreview.html#overriding-the-previewrendererresolver

Actions #1

Updated by Jonathan Kieling about 2 years ago

Hi there,

I can confirm this for 10.4.28. I'm using a workaround by replacing the resolver with a custom implementation via symfony DI in my own Services.yaml.

services:
  TYPO3\CMS\Backend\Preview\StandardPreviewRendererResolver:
    class: \YOUR_NAMESPACE\YOUR_IMPLEMENTING_CLASS
    public: true
Actions #2

Updated by Benni Mack about 1 month ago

  • Status changed from New to Closed

Hey Henni,

I'm closing this ticket:

a) it is related to the documentation part, not the core code
b) the resolver is not meant to be overridden
c) the 10.4 docs have been adapted (can't find the snippet anymore)
d) 11.5+ does not contain any information anymore.

Hope that's OK for you

Actions

Also available in: Atom PDF