[TYPO3-mvc] how to get FAL filenames in controller action?
martol man
eigentlichimmer at abwesend.de
Thu Oct 9 18:20:35 CEST 2014
Hi,
I am doing the following in controller action:
$this->view->assign('product', $productArr[0]);
and the following in view:
<f:for each="{product.images}" as="picture" iteration="itemIteration">
<a href="{picture.originalResource.originalFile.publicUrl}" {f:if(condition: '{itemIteration.index} > 4', then: 'style="display:none"')}>
<f:image src="{picture.originalResource.originalFile.uid}" maxWidth="200" title="{picture.originalResource.originalFile.title}" alt="{picture.originalResource.originalFile.alternative}" />
</a>
</f:for>
Is it possible to get this value {picture.originalResource.originalFile.publicUrl} in controller? I do not know how to handle that. I am using Typo3 6.2.3 and I need this value in an regular extbase extension controller action.
More information about the TYPO3-project-typo3v4mvc
mailing list