diff --git a/typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php b/typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php index d64b26f9794a8ad9d8220054f65b9fad7749e985..b06fab1ae8d360e4d00158635294b7fbeac1bae1 100644 --- a/typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php +++ b/typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php @@ -419,6 +419,8 @@ class StandardContentPreviewRenderer implements PreviewRendererInterface, Logger protected function createEmulatedPageLayoutViewFromDrawingConfiguration(DrawingConfiguration $drawingConfiguration): PageLayoutView { $pageLayoutView = GeneralUtility::makeInstance(PageLayoutView::class); + $pageLayoutView->id = $drawingConfiguration->getPageId(); + $pageLayoutView->pageRecord = $drawingConfiguration->getPageRecord(); $pageLayoutView->option_newWizard = $drawingConfiguration->getShowNewContentWizard(); $pageLayoutView->defLangBinding = $drawingConfiguration->getDefaultLanguageBinding(); $pageLayoutView->tt_contentConfig['cols'] = implode(',', $drawingConfiguration->getActiveColumns());