[TYPO3-mvc] Could not get image resource for ""

Peter Niederlag typo3-list at niekom.de
Thu Feb 3 17:36:22 CET 2011


Hello,

Am 03.02.2011 17:19, schrieb Stefano Kowalke:
> Hi,
[...]
>      uni = IMAGE
>      uni {
>        file = fileadmin/templates/layout/img/uni.jpg
>      }

we now have a "ready to consume" <img> .... tag.

> <div id="main">
>    <div id="head">
>      <f:image src="{uni}" alt="{uni}" />
>    </div>
> </div>
>
> But I got this error: Could not get image resource for
> "fileadmin/templates/layout/img/uni.jpg"

f:image src="" expects a path to an image file but not a "ready to 
consume <img>-tag

[...]

> Did I miss something?

IMO you need to decide wether you generate the image tag via TS and 
insert it as HTML-snippet {uni}
OR
insert the pure filename(w or without path) and feed that to the 
<f:image> viewhelper

hth,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list