Project

General

Profile

Actions

Bug #101272

closed

Content preview fails to initialize renderingContext correctly

Added by Markus Klein 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
-
Start date:
2023-07-06
Due date:
% Done:

0%

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

Description

setting a preview for mod.web_layout.tt_content.preview.<ctype> causes an exception due to missing request in EditRecordViewHelper.

The initialized StandaloneView is not initialized correctly.

Example:

mod.web_layout.tt_content.preview.text = EXT:sitepackage/Resources/Private/Templates/dummy.html

dummy.html

{be:uri.editRecord(uid: uid,table: 'tt_content')}

Related issues 1 (1 open0 closed)

Is duplicate of TYPO3 Core - Bug #99287: Request missing for StandardContentPreviewRenderer ViewUnder ReviewDaniel Siepmann2022-12-06

Actions
Actions #1

Updated by Markus Klein 10 months ago

  • Description updated (diff)
Actions #2

Updated by Markus Klein 10 months ago

  • Description updated (diff)
Actions #3

Updated by Markus Klein 10 months ago

\TYPO3\CMS\Backend\View\Drawing\BackendLayoutRenderer::drawContent has a valid request

subsequently calls

\TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer::renderContentElementPreviewFromFluidTemplate

which then creates a StandaloneView, but does not initialize its renderingContext, more precisely the request.

Actions #4

Updated by Gerrit Code Review 10 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79836

Actions #5

Updated by Markus Klein 10 months ago

  • Is duplicate of Bug #99287: Request missing for StandardContentPreviewRenderer View added
Actions #6

Updated by Markus Klein 10 months ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF