Discussion:
[TYPO3-english] flux and fed with image preview in BE
Victor Livakovsky
2012-03-23 18:03:16 UTC
Permalink
Hi, List.

I've started using flux + fed extensions as alternative to TV FCE. It going
slowly, but I like it much! :)
The only problem I have so far is image preview generation in BE.
The code:
<f:section name="Preview">
Image: <f:image src="{slideImage}" alt="image" />
</f:section>

Output is:
<img src="../fileadmin/template/pics/slide.png" alt="image" />
And this is not correct, because server tries to find following image by
this path: domain.tld/typo3/sysext/cms/fileadmin/template/pics/slide.png -
and that is not correct.
Is it bug of an extension or I'm doing something worng?

Right now I've made a following workaround:
<f:section name="Preview">
Image: <img src="../../../{f:uri.image(src: '{slideImage}')}" alt="image"
/>
</f:section>

That produces correct output, but not so ellegant.
So, is there any better way to generate preview image?


And another question about flux + fed: can I develop simple plugins with
list + single view without developing of my own extension, but with only TS
and fed? If so, are there any hints or examples?
Alexander Dick
2012-07-19 12:57:47 UTC
Permalink
Hi,

I solved it this way:

<img src="/{f:uri.image(src:'uploads/tx_foo/{image}', maxWidth: 100,
maxHeight: 100)}" alt="" />

cheers
Alex
Post by Victor Livakovsky
Hi, List.
I've started using flux + fed extensions as alternative to TV FCE. It
going slowly, but I like it much! :)
The only problem I have so far is image preview generation in BE.
<f:section name="Preview">
Image: <f:image src="{slideImage}" alt="image" />
</f:section>
<img src="../fileadmin/template/pics/slide.png" alt="image" />
And this is not correct, because server tries to find following image by
this path: domain.tld/typo3/sysext/cms/fileadmin/template/pics/slide.png
- and that is not correct.
Is it bug of an extension or I'm doing something worng?
<f:section name="Preview">
Image: <img src="../../../{f:uri.image(src: '{slideImage}')}"
alt="image" />
</f:section>
That produces correct output, but not so ellegant.
So, is there any better way to generate preview image?
And another question about flux + fed: can I develop simple plugins with
list + single view without developing of my own extension, but with only
TS and fed? If so, are there any hints or examples?
Victor Livakovsky
2012-07-20 09:04:26 UTC
Permalink
Hi, Alexander
Post by Alexander Dick
<img src="/{f:uri.image(src:'uploads/tx_foo/{image}', maxWidth: 100,
maxHeight: 100)}" alt="" />
Ah, yes, that makes sence.
Thank you for a hint!

Loading...