Issue Bug Closed

#91162Cant render own footer preview on tt_content elements in backend

Sebastian Richter 04/21/20, 18:58 updated 04/28/20, 11:09

Description

If i register an additional previewRenderer for the footer on a tt_content element
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawFooter']
i get an error which says that the method `Call to undefined method TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getBackendLayout()`.

The method doesnt exist anymore and if i change line 243 in the class `typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php` to

$pageLayoutView = PageLayoutView::createFromPageLayoutContext($item->getContext());
everything is working fine again.

Reviews 1