vhs icon indicating copy to clipboard operation
vhs copied to clipboard

Empty Array v:resource.file when identifier = SVG

Open beam2web opened this issue 7 years ago • 1 comments
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)

beam2web avatar Mar 05 '18 15:03 beam2web

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?

neufeind avatar Oct 30 '18 23:10 neufeind

Closing due to age and lack of feedback.

NamelessCoder avatar Jul 18 '23 13:07 NamelessCoder