[TYPO3-mvc] Getting remote images
Stephen Bungert
stephenbungert at yahoo.de
Tue Nov 22 07:45:26 CET 2011
Is the fluid tag <f:image> just for getting images from within the typo3
folder structure?
I have a template like this:
<f:layout name="Default" />
<f:section name="main">
<h1>Flickr Image Search Results Test</h1>
<f:flashMessages />
<f:if condition="{photos}">
<f:debug title="Debug of photos">{photos}</f:debug>
<ol class="photos">
<f:for each="{photos}" as="photo">
<f:cycle values="{0: 'odd', 1: 'even'}" as="oddEven">
<li class="photo {oddEven}">
</f:cycle>
<div class="photoImage">
<f:image
src="http://farm{photo.farm}.static.flickr.com/{photo.server}/{photo.id}_{photo.secret}.jpg"
width="100" height="60" alt="IMG" />
</div>
</li>
</f:for>
</ol>
</f:if>
</f:section>
But all I see for every image is something like this:
Could not get image resource for
"http://farm7.static.flickr.com/6053/6378735287_56dd48224c.jpg"
When adding remote images, am I supposed to just add an html image tag? This
works ok.
More information about the TYPO3-project-typo3v4mvc
mailing list