Project

General

Profile

Bug #82977

Updated by Markus Gehrig over 6 years ago

Used Version: TYPO3 8.7.8 on Linux/Apache and a custom extension.  

 At the moment I can not access the metainformation set in the filelist. I can see the title and description set in the filelist with a <f:debug> on the image reference but I can not access it without an error or getting an empty string.  

 I used following code to get the data from the FAL: 

 <pre> 
 $fileRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\FileRepository'); 
 $files = $fileRepository->findByRelation('tx_photographphotographygalerie_domain_model_galerie', 'image', $galerie->getUid()); 
 </pre> 

 And get following data back (<f:debug> of array named image): 
 !https://forge.typo3.org/attachments/download/32887/TYPO3_Bug_FAL.JPG! 

 When I now acess the data in the frontend with following code: 
 <pre> 
 {image.imageReference.originalFile.metaDataProperties.title} 
 </pre> 

 It get the error: "Cannot access protected property TYPO3\CMS\Core\Resource\File::$metaDataProperties" 

 I also testet to get the discription with the get the dicription with FileReference->getDescription() and FileReference->getProperties(), but I get only a empty string back. 




Back