Forums / Setup & design / flash movie into a template

flash movie into a template

Author Message

Christian Keusch

Thursday 30 March 2006 6:16:23 am

when i follow the documentation:
"In order to display a flash movie in an eZ publish site, first of all you must add the swf extension to RewriteRule string in your Apache VirtualHost configuration, like in this example: RewriteRule !\.(gif|css|jpg|png|swf)$ /path/to/index.php Always remember to restart Apache after every change. To insert correctly the flash movie in your pagelayout.tpl, you have to publish the movie with your Flash application generating both the .swf file and the .html page. Upload the .swf file , let's call it mymovie.swf, in the design/mydesign/images directory; then open the .html page generated with flash and copy only the code for embedding the movie, as in this example:Paste this code into pagelayout.tpl in the point where you want to display your flash movie. Now you must change the path to mymovie.swf so that eZ publish can find and display it:Finally, clear all template caches, reload your site index, and enjoy! . "

and change the path to <embed src={"logo.swf"|ezimage} ..... it runs only in the mozilla firefox. the IE shows nothing of the flash movie??

what is wrong ??

mfg, frik

Ɓukasz Serwatka

Monday 03 April 2006 12:47:54 am

Take a look at this:
http://www.alistapart.com/articles/flashsatay/

I guess something is wrong with your XHTML code.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Richard Tuin

Monday 03 April 2006 1:27:17 am

Another thing you could do is place a piece of {literal} code into your template.

something like:

{literal}
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com
/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="400" height="300" id="movie" align="">
<param name="movie" value="movie.swf" />
<embed src="movie.swf" quality="high" width="400" height="300" name="movie" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
{/literal}

Please verify that you supply the correct flash version.

And, as the manual says: don't forget to add the .swf extension to the RewriteRule exceptions.