Project

General

Profile

Actions

Bug #101272

closed

Content preview fails to initialize renderingContext correctly

Added by Markus Klein over 1 year ago. Updated over 1 year 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 (0 open1 closed)

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

Actions
Actions #1

Updated by Markus Klein over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Markus Klein over 1 year ago

  • Description updated (diff)
Actions #3

Updated by Markus Klein over 1 year 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 over 1 year 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 over 1 year ago

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

Updated by Markus Klein over 1 year ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF