swfobject and uploading flash files

swfobject and uploading flash files

Tuesday 27 May 2008 4:00:16 am - 2 replies

Modified on Tuesday 27 May 2008 4:05:34 am by Jeroen Slagt

Author Message

Jeroen Slagt

Tuesday 27 May 2008 4:19:34 am

I can construct it as follows:

{concat("content/download/",$node.object.data_map.intro_background_flash.contentobject_id,"/",$node.object.data_map.intro_background_flash.content.contentobject_attribute_id,"/",$node.object.data_map.intro_background_flash.content.original_filename)|ezurl}

Felix Laate

Tuesday 27 May 2008 4:51:01 am

Hi Jeroen,

you could make an override for embed/flash.tpl, something like this:

<div class="view-embed">
    <div class="content-media">
    <div id="player">This text will be replaced</div>
    {def $attribute=$object.data_map.file}
var so = new SWFObject({concat("content/download/",$attribute.contentobject_id, "/",
 $attribute.content.contentobject_attribute_id, "/", 
$attribute.content.original_filename)|ezurl}, 'mpl', {$attribute.content.width}, {$attribute.content.height},'9');
so.write('player');
{undef $attribute}
    </div>
</div>

and the include it in your template.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

You must be logged in to post messages in this topic!

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