[TYPO3-mvc] Fluid ViewHelper Link.File?

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Thu Dec 10 00:42:00 CET 2009


A, thanks - works well!

Is there a possibility to use fluid to link
to a resized image resource?

Like this:

<f:link.external
 > uri="{f:uri.resource(path:'{image.path}', maxWidth:'900')}">

Note the 'maxWidth' parameter.

Is there already such a viewhelper or would I
need to handle this in the model? (I guess a
viewhelper Tx_Fluid_ViewHelpers_Uri_ImageViewHelper
could do the job, yes?)

Thanks,
Thomas


Sebastian Kurfürst schrieb:
> Hey,
> 
>> PS: I tried this, but it gives an error:
>>
>> <f:link.external
>> uri="{f:uri.resource(path:{settings.images.path}{image})}">
> 
> Try
> <f:link.external
> uri="{f:uri.resource(path:'{settings.images.path}{image}')}"> (see the
> quotes).
> 
> Greets,
> Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list