'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').''; $ffs = GeneralUtility::makeInstance(FlexFormService::class); $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']); $img = ''; //file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND); if($flex['image'] == "1"){ $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository'); $fileObjects = $fileRepository->findByRelation('tt_content', 'image', $row['uid']); if($fileObjects && sizeOf($fileObjects) >= 1){ $img = array( 'reference' => $fileObjects[0]->getReferenceProperties(), 'original' => $fileObjects[0]->getOriginalFile()->getProperties(), 'resource' => $fileObjects[0] ); } $params = '{"fileId":'.$img['original']['uid'].',"configuration":{"width":64,"height":"64c","crop":{},"_context":"Image.CropScaleMask"}}'; $thumbnailUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbnailUrl($img["original"]["uid"], ["width" => 64, "height" => "64c", "crop" => [], "_context" => "Image.CropScaleMask"]); $img = ''.$img['original']['name'].''; } $itemContent .= '
'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':'.$img.'
'; $drawItem = false; /* * file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND); file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND); file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND); /* */ } } }