How does one use Flash as a content object?

Author Message

Maggie Martin

Wednesday 17 December 2003 9:26:09 pm

I have created a content class "flash", created an instance of that object
(datatype media)

created the class id override template, added the relevant information to the settings/site access/ mysite/ override.ini.php file

added this code on the template that I want that file to appear:

{* flash anim *}
{let flash=fetch(content,node,hash(node_id,101))}
{node_view_gui view=full content_node=$flash}
{/let}

RESULTS:
The flash file does not load and the browser givers this error message:

The page "my site/ my page" has content of MIME type "". You do not have a plug-in installed for this MIME type, but one should be available on this page:

____________

And then the page referred to is blank

obviously the browser is NOT getting the info it needs

To test my set up I coded the template the "old fashioned" way
as descibed here:http://www.ez.no/developer/ez_publish_display_a_flash_movie_in_pagelayouttpl

and all works fine so the file works, apache is configured correctly ...

but I want to be able to have flash files handled dynamically -- as content objects.

what to do??
do I need to change ezmedia.php or ezmediatype.php or ezmedia.tpl or??

Thanks for any help!

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 31 2025 03:23:44
Script start
Timing: Jan 31 2025 03:23:44
Module start 'layout'
Timing: Jan 31 2025 03:23:44
Module start 'content'
Timing: Jan 31 2025 03:23:44
Module end 'content'
Timing: Jan 31 2025 03:23:44
Script end

Main resources:

Total runtime0.0238 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.2656151.2266
Module start 'layout' 0.00560.0042 739.4922220.7188
Module start 'content' 0.00990.0127 960.2109997.7266
Module end 'content' 0.02260.0013 1,957.937529.9922
Script end 0.0238  1,987.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.1957140.0002
Check MTime0.00103.9995140.0001
Mysql Total
Database connection0.00062.453710.0006
Mysqli_queries0.004318.000730.0014
Looping result0.00000.042010.0000
Template Total0.00104.010.0010
Template load0.00073.057610.0007
Template processing0.00020.922910.0002
Override
Cache load0.00052.264710.0005
General
dbfile0.00239.746780.0003
String conversion0.00000.017040.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