[TYPO3-english] Re: problem after update to 6.2 with extension

andreas an.pfeiffer at gmail.com
Thu Mar 27 16:41:20 CET 2014


hi markus,

thank you for your help.

i have changed all your suggestion according to:

public function preProcess(\TYPO3\CMS\Backend\View\PageLayoutView $parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row)

i use this function/hook for a preview of content in the page module.

i can instance an object like

$fluidRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Fluid\View\StandaloneView');

and it works without a problem. but if i instance an oject from a repsoitory in this extension like

$bannerRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Ce\CeContent\Domain\Repository\BannerRepository');

it fails but the repository self is ok and works in frontend.

---

well, i could use

\TYPO3\CMS\Backend\Utility\BackendUtility::getRecordsByField()

but i do not get images with this, just the plain data from the db.

thanks


More information about the TYPO3-english mailing list