[TYPO3-mvc] how to get FAL filenames in controller action?
Frans Saris
franssaris at gmail.com
Thu Oct 9 18:43:49 CEST 2014
Hi Martol,
{picture.originalResource.originalFile.publicUrl} in fluid is
$picture->getOriginalResource()->getOriginalFile()->getPublicUrl() in php.
Gr. Frans
Op 9 okt. 2014 18:25 schreef "martol man" <eigentlichimmer at abwesend.de>:
> 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.
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
More information about the TYPO3-project-typo3v4mvc
mailing list