Forums / Developer / Show Path of an Binary File
Thomas Lehmann
Monday 26 May 2003 1:05:32 am
Hello at all.
I have a difficult problem with showing the path of an binary file in my result-page.
The authors have to include a Flash-Movie into their articles. My problem is to show the complete URI of that movie in the Object's Param-Tag:
<object ... > <param name="movie" value="...">...</object>
I tried this:[I've copied it from the ezbinaryfile.tpl and modified it]
... <param name="movie" value={let attribute=$node.data_map.animation:item}{$attribute.content.filepath|ezroot}{/let}">...
I moved: {$attribute.content.filepath|ezroot} to an external template [binaryfile_uri.tpl] and included it that way:{node_view_gui view=binaryfile_uri content_node=$node.data_map.animation:item}
But in both cases this won't work: the returned path is not valid.
Have anyone an idea?
Thanks.
PS: Sorry for my bad english. :)
Frode Marton Meling
Tuesday 27 May 2003 11:51:23 pm
You cannot use the :item phrace inside let. :item is for loop sections. You already have the node, so maybe this will work instead (I have not tried it myself).<param name="movie" value={$node.data_map.animation.content.filepath|ezroot}">
(It looks to me like you should read the template tutorials and the Wiki section of templates.)MartOn
Wednesday 28 May 2003 1:16:47 am
Hello. Thanks for answering.
So, before I posted here I've tried this too.But it just don't work correctly.
The URI is right: if I open it in the Browser it redirects(?!) me to the File and I could download it. But the Flash-Movie cannot use the URI.
I want the real URI of that file.
I'll read the tutorials now.
Thanks, Bye.
Bård Farstad
Wednesday 28 May 2003 1:29:19 am
Thomas: have you looked into the media datatype? This is designed to show flash, quicktime, real player or windows media movies.
I think this datatype will save you some time if you want to use flash with Exponential.
--bård
Documentation: http://ez.no/doc