Tuesday 27 May 2008 4:00:16 am
I am using swfobject for displaying flash movies.
At some places I use flashmovies instead of images. I want to be able to upload these flash movies though the cms interface. I use a construction like this in my template
{if $node.object.data_map.image.has_content}
<img src="/{$node.object.data_map.intro_background_image.content[original].full_path}" />
{elseif $node.object.data_map.flash.has_content}
...swfobject code... {/if}
However, I can't get the full path to the uploaded swf file to put in the swf object code. How can I get this from within my template? var so = new SWFObject("{FULL_PATH_TO_UPLOADED_SWF_FILE}", "blah", "560", "150", "8", "#ffffff"); I can't find it anywhere in the documentation...
|