[TYPO3-english] FAL ignores localized images...(TYPO3 6.2.9)

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Mon May 18 12:17:40 CEST 2015


Hello,

I am using the Introduction package in a multilanguage context.

When displaying images in the front-end, FAL seems to ignore localized 
images (only the images for the default lang are shown for other 
languages than default...

The fluid-snippet is this:

<bk2k:fal data="{data}" as="images" field="image">
	<f:if condition="{images}">
		<f:for each="{images}" as="image" iteration="iteration">
			<f:image src="{image.uid}" treatIdAsReference="1" />
		</f:for>
	</f:if>
</bk2k:fal>


The viewhelper-function is which is called by the snippet is this:

     public function render($data,$as = 'items', $table = 'tt_content', 
$field = 'image') {
         if(is_array($data) && $data['uid'] && $data[$field]){
             $this->fileRepository = 
GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\FileRepository');
             $items = $this->fileRepository->findByRelation($table, 
$field, $data['uid']);
         }else{
             $items = NULL;
         }
         $this->templateVariableContainer->add($as, $items);
         $content = $this->renderChildren();
         $this->templateVariableContainer->remove($as);

         return $content;

     }

Any ideas how to resolve this?

Thanks in advance!

Regards,
Bert



More information about the TYPO3-english mailing list