How to insert a file for direct download?

Author Message

Christoph Polus

Wednesday 13 July 2005 12:28:17 am

Hi

I uploaded a file into the media folder of eZ publish 3.6. Now I'd like to make a direct download link to this file in my text area [XML Block].

Unfortunately I only get redirected to a page where I can download the file.

How can I achieve to have direct the link to the file inserted?

Thanks
Chris

Christoph Polus

Wednesday 13 July 2005 12:40:52 am

Ah, I thought in the wrong direction. Of course I can just embed the object and then use the embed/line/full template views to change output.

A little tricky though for first time users (such as me) as they want to make a link to the object and specify the link text and don't think of inserting an actual object.

But still curious: Is there a way of changing the link tag output to achieve the wanted effect?

Thanks
Chris

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 16:02:24
Script start
Timing: Jan 18 2025 16:02:24
Module start 'layout'
Timing: Jan 18 2025 16:02:24
Module start 'content'
Timing: Jan 18 2025 16:02:25
Module end 'content'
Timing: Jan 18 2025 16:02:25
Script end

Main resources:

Total runtime1.3383 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1797152.6406
Module start 'layout' 0.00560.0034 741.820339.4766
Module start 'content' 0.00901.3279 781.2969424.8516
Module end 'content' 1.33690.0014 1,206.14848.1250
Script end 1.3383  1,214.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2359160.0002
Check MTime0.00130.0981160.0001
Mysql Total
Database connection0.00080.057710.0008
Mysqli_queries1.298397.0106520.0250
Looping result0.00040.0304500.0000
Template Total1.305797.620.6529
Template load0.00180.138220.0009
Template processing1.303997.428220.6519
Template load and register function0.00030.018810.0003
states
state_id_array0.00090.063810.0009
state_identifier_array0.00170.128120.0009
Override
Cache load0.00150.1138150.0001
Sytem overhead
Fetch class attribute can translate value0.00050.038110.0005
Fetch class attribute name0.00090.065120.0004
XML
Image XML parsing0.00010.007810.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00130.1002100.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs