[TYPO3-english] Original width and height of image in fluid
Vikram Mandal
vikram at fivee.in
Fri Sep 8 10:19:01 CEST 2017
On 09/06/2017 10:54 AM, Vikram Mandal wrote:
> On 09/05/2017 12:55 PM, Jigal van Hemert wrote:
>>
>> If 'image' is the file reference object it would be
>> {image.originalFile.width}
>>
>>
width and height are protected vars. To access them we need to use the
getProperty() method.
Now the problem is how do call a method inside fluid template. One
approach is building a viewhelper. The Vhs extension provides one.
{object -> v:call(method: 'toArray')}
--
Vikram
=============================
http://T3IN.COM
FiveE Technologies.
=============================
More information about the TYPO3-english
mailing list