ez.no / exponential / documentation / incoming / developing projects / flash / how to display a flash movie in pagelayout.tpl
These documentation pages are no longer maintained. Please visit the new documentation site.
In order to display a flash movie in an Exponential 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 Exponential can find and display it:Finally, clear all template caches, reload your site index, and enjoy! .
Comments
New, correct way for inserting flash movies in templates
Sandra Parente
Tuesday 06 March 2007 6:15:41 pm
Just put the right values between empty "" .
for the record...
Jonathan Dillon-Hayes
Tuesday 29 March 2005 12:27:31 am
This rule:
RewriteRule !\.(gif|ico|jpe?g|png|css|js)$ index.php
...or example, says that .gif, .ico, .jpe, .jpg, .jpeg, png, .css and .js files should NOT be handled by exponential. So, if you wanted to use swf files, you would need to add it to the list.
By default, there is a .htaccess file included with Exponential that will facilitate this.
It would be better to ask these types of questions in the forums, but I figured since it's the docs, I might as well add it here too so others will know...
J
Re: Got a problem makeing it working
Ole Morten Halvorsen
Tuesday 27 July 2004 4:43:29 pm
Got a problem makeing it working
John Mina
Tuesday 27 July 2004 1:28:56 pm
When i try to do as written above in article, i got the following error. i copied and pasted the screen as it replied me back