[TYPO3-english] 6.1 - render MEDIA with f:cObject

Jan Bednarik info at bednarik.org
Sat Apr 5 13:27:25 CEST 2014


OK, I've managed to resolve it with this hack:

file.ifEmpty.current = 1

But it looks like a bug to me, what do you think?

Jan

Dne 5.4.2014 13:24, Jan Bednarik napsal(a):
> Hi all,
>
> I have a problem with rendering MEDIA object from Fluid. The code:
>
> <f:cObject
> typoscriptObjectPath="plugin.tx_no1.settings.video">{video.video.url}</f:cObject>
>
>
> plugin.tx_no1.settings {
>      video < tt_content.media.20
>      video {
>          file.current = 1
>          type = video
>          useHTML5 = 1
>          renderType = auto
>      }
> }
>
> The problem is, that right before calling
>
> $content = $this->cObj->SWFOBJECT($conf);
>
> in MediaContentObject.php, the value of file is:
>
> file =
> http://vimeo.com/moogaloop.swf?clip_id=67086732&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&fullscreen=1
>
> file.current = 1
>
> And so the output is
>
> <object type="application/x-shockwave-flash"
> data="http://vimeo.com/67086732" width="600" height="400"
> id="mmswf533fe66b61066" style="visibility: visible;">
> ...
>
> while it should be
>
> <object type="application/x-shockwave-flash"
> data="http://vimeo.com/moogaloop.swf?clip_id=67086732&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&fullscreen=1"
> width="600" height="400" id="mmswf533fe66b61066" style="visibility:
> visible;">
>
> So as you see, the URL to the Video is at first transformed to correct
> form, but since the current = 1 is preserved, subsequent stdWrap
> replaces it with the original value, which cannot be used in the
> <object> tag.
>
> Any ideas?
>
> Thanks
>
> Jan



More information about the TYPO3-english mailing list