How to make a direct download link in Xml Block?

Author Message

Smith Th

Friday 26 October 2007 3:37:37 am

I want to use a direct download link on file in xml block like this http://ez.no/ezpublish/contributing#eztoc313566_6

<ul>

<li>eZ Systems has the final word on what goes into eZ Publish or not.</li>

<li>All new functionality has to be documented. If you do not have time to document the functionality keep in mind that we need time before releases to do this work.</li>

<li>Contributors must grant us the right to include their contribution in eZ Publish. When contributing code, please submit a <link href="ezobject://180">CLA (Contributor Licensing Agreement)</link> to eZ Systems. More information about the CLA is available <link href="ezobject://181">here</link>.</li>

Instead this "<link href="ezobject://180">CLA (Contributor Licensing Agreement)</link>"

I want this. "<a href="/content/download/143969/928220/version/2/file/eZCLA-v1.1.pdf">CLA (Contributor Licensing Agreement)</a>"

<b>How to make a direct download link in Xml Block?</b>

Frédéric DAVID

Friday 26 October 2007 4:35:59 am

Have a look to this article http://pwet.fr/blog/creating_a_link_to_download_a_file_with_online_editor_in_ez_publish

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Smith Th

Friday 26 October 2007 5:23:19 am

Thanks for help.

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 19 2025 02:34:40
Script start
Timing: Jan 19 2025 02:34:40
Module start 'layout'
Timing: Jan 19 2025 02:34:40
Module start 'content'
Timing: Jan 19 2025 02:34:41
Module end 'content'
Timing: Jan 19 2025 02:34:41
Script end

Main resources:

Total runtime1.1952 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.2813152.6406
Module start 'layout' 0.00670.0031 741.921939.4766
Module start 'content' 0.00991.1835 781.3984530.4141
Module end 'content' 1.19340.0018 1,311.812512.1250
Script end 1.1951  1,323.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3009160.0002
Check MTime0.00140.1149160.0001
Mysql Total
Database connection0.00070.061210.0007
Mysqli_queries1.151396.3250570.0202
Looping result0.00050.0452550.0000
Template Total1.156296.720.5781
Template load0.00180.154520.0009
Template processing1.154396.579920.5772
Template load and register function0.00020.019210.0002
states
state_id_array0.00120.099610.0012
state_identifier_array0.00200.171120.0010
Override
Cache load0.00140.1207130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.073620.0004
Fetch class attribute name0.00140.120540.0004
XML
Image XML parsing0.00070.061920.0004
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00100.0808160.0001
String conversion0.00000.000740.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
3content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs