vhs
vhs copied to clipboard
Empty Array v:resource.file when identifier = SVG
trafficstars
https://github.com/FluidTYPO3/vhs/blob/master/Classes/ViewHelpers/Resource/FileViewHelper.php
When the identifier is path to png/jpeg all works correct, but not with path to an svg File
Path to PNG/JPEG
<v:variable.set
name="myImage"
value="{v:resource.file(identifier: pathToPng)}" />
<f:debug>{myImage}</f:debug>
=> Filled array (correct)
Path to SVG
<v:variable.set
name="myImage"
value="{v:resource.file(identifier: pathToSVG)}" />
<f:debug>{myImage}</f:debug>
=> Empty Array (wrong)
The FileViewHelper-code doesn't do much. Are you sure your pathToSVG is set correctly, also taking into account uppercase/lowercase etc.? Do you find the identifier in your FAL-tables? Can you see the file in the filelist-module?
Closing due to age and lack of feedback.