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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:18:09
Script start
Timing: Jan 18 2025 19:18:09
Module start 'layout'
Timing: Jan 18 2025 19:18:09
Module start 'content'
Timing: Jan 18 2025 19:18:09
Module end 'content'
Timing: Jan 18 2025 19:18:09
Script end

Main resources:

Total runtime0.0199 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.9219152.6250
Module start 'layout' 0.00870.0033 740.546939.4453
Module start 'content' 0.01200.0057 779.992289.4453
Module end 'content' 0.01780.0021 869.437534.3047
Script end 0.0198  903.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.2221140.0002
Check MTime0.00115.6409140.0001
Mysql Total
Database connection0.00189.219210.0018
Mysqli_queries0.002713.604630.0009
Looping result0.00000.110310.0000
Template Total0.00178.710.0017
Template load0.00094.612010.0009
Template processing0.00084.095210.0008
Override
Cache load0.00063.012310.0006
General
dbfile0.00031.274780.0000
String conversion0.00000.040840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs