Show Path of an Binary File

Author Message

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

Thomas Lehmann

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 eZ publish.

--bård

Documentation: http://ez.no/doc

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 18 2025 11:37:00
Script start
Timing: Jan 18 2025 11:37:00
Module start 'layout'
Timing: Jan 18 2025 11:37:00
Module start 'content'
Timing: Jan 18 2025 11:37:02
Module end 'content'
Timing: Jan 18 2025 11:37:02
Script end

Main resources:

Total runtime1.4195 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.9141152.6250
Module start 'layout' 0.00660.0046 740.539139.4453
Module start 'content' 0.01121.4064 779.9844587.7266
Module end 'content' 1.41760.0019 1,367.710912.1641
Script end 1.4194  1,379.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2445160.0002
Check MTime0.00140.1012160.0001
Mysql Total
Database connection0.00080.056210.0008
Mysqli_queries1.353995.3814620.0218
Looping result0.00060.0439600.0000
Template Total1.380297.220.6901
Template load0.00220.154020.0011
Template processing1.378097.077020.6890
Template load and register function0.00020.015610.0002
states
state_id_array0.00110.076110.0011
state_identifier_array0.00320.228620.0016
Override
Cache load0.00180.1264470.0000
Sytem overhead
Fetch class attribute can translate value0.00090.063330.0003
Fetch class attribute name0.00150.108350.0003
XML
Image XML parsing0.00100.070430.0003
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00120.0854170.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs