Forums / General / How to make a direct download link in Xml Block?

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.

eZ debug

Timing: Jan 19 2025 01:01:51
Script start
Timing: Jan 19 2025 01:01:51
Module start 'content'
Timing: Jan 19 2025 01:01:52
Module end 'content'
Timing: Jan 19 2025 01:01:52
Script end

Main resources:

Total runtime1.0083 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 590.1953180.8203
Module start 'content' 0.00680.8672 771.0156535.5078
Module end 'content' 0.87400.1342 1,306.5234332.7500
Script end 1.0082  1,639.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4015210.0002
Check MTime0.00150.1501210.0001
Mysql Total
Database connection0.00060.057610.0006
Mysqli_queries0.935992.82341940.0048
Looping result0.00200.19651920.0000
Template Total0.973296.520.4866
Template load0.00210.205220.0010
Template processing0.971196.315320.4856
Template load and register function0.00020.023010.0002
states
state_id_array0.00140.134910.0014
state_identifier_array0.00130.132420.0007
Override
Cache load0.00170.1676130.0001
Sytem overhead
Fetch class attribute can translate value0.00200.200630.0007
Fetch class attribute name0.00150.153640.0004
XML
Image XML parsing0.00260.259530.0009
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00970.9653270.0004
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs