Forums / Setup & design / How does one use Flash as a content object?

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!