Path

ez.no / exponential / documentation / incoming / developing projects / flash / how to display a flash movie in pagelayout.tpl


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

This code works correctly with Firefox 2, IE 6 and 7, Opera 9, Safari 2 and Netscape 7, and is xhtml 1.0 valid:



  <object type="application/x-shockwave-flash" data={"yourflashmovie.swf"|ezimage} width="" height="" id="">


<param name="movie" value={"yourflashmovie.swf"|ezimage} /> 

<param name="quality" value="" /> <param name="bgcolor" value="" /> 

  </object>




Just put the right values between empty "" .

for the record...

what the "apache virtual host configuration file" bit is about, for the record, is either putting this rule in your .htaccess configuration file in your website docroot, or in the httpd.conf virtualhost entry for your domain in the httpd.conf file apache uses for configuration (concequentially, this is why you would have to restart apache).

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

The rewrite rule is not an command you are supposted to run, but something which is supposed to be added to your apache virtualhost configuration file. Try post your problem in the forum. You'll have bigger chance of getting help there.

Got a problem makeing it working

Dear Sirs,
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




[admin2@dedicated ezroot]$ RewriteRule !\.(gif|css|jpg|png|swf)$ index.php


-bash: !\.: event not found


[admin2@dedicated ezroot]$


Contents

Incoming

APPENDICES
Design
Developing and Improving Exponential
Developing projects
    Portals
    Web Standards
    Online Editor
    Desktop Edition
    Packages
    Flash
       How to display a flash movie in pagel...
    PDF
    RSS
    Soap
    Webdav
    Extensions
Exponential development cycle
Exponential site structure
Hide shop/setup navigation tab
How does the new menu system work?
How to find a node id in the path array
How to find the parent and grandparen...
How to set cache expire time or disab...
HTTP Post to URL conversion
Image Map
Javascript popupmenu
Line ending in email
List of MIME types
Managing Development
MySQL Server Character Set
Package format
PDF export tutorial
Persistent template variable
PHP and Apache 2
Problems on Mac OS 9 and Mac OS X
Remove confirmation when discarding a...
Session
Setting several variables in a section
Setting up RSS Import
Setup PHP for comandline usage (PHP-C...
Smart viewcache cleaning system
SSL with eZ over a SSL proxy
System development
Test document
The Community Server
Truetype font in PDF
Tutorial: Using user/register
User preferences
WebDAV clients and compatiblity
What does "Something: Tag 'link' must...


Created

24/11/2003
5:45:31 pm
by Sandra Parente

Last updated

21/02/2005
3:51:20 pm
by Ole Morten Halvorsen

Authors

Sandra Parente
Ole Morten Halvorsen



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.