How to create a download link to a PDF - File?

Author Message

Michael Bolien

Monday 07 April 2003 2:56:48 am

Hi everybody,

I'm trying to create a link to a PDF-File. Did create a new class "PDF" (props: name, description, binary file), but including the URL of that file always shows [ezobjectcontentclass].

What can I do?

Regards, Michael

Peter Bailey

Monday 07 April 2003 8:14:11 am

How are you creating the URL?

You can usually do something like this

{node_view_gui view=text_linked content_node=$nodeVar}

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 10:19:55
Script start
Timing: Jan 18 2025 10:19:55
Module start 'layout'
Timing: Jan 18 2025 10:19:55
Module start 'content'
Timing: Jan 18 2025 10:19:56
Module end 'content'
Timing: Jan 18 2025 10:19:56
Script end

Main resources:

Total runtime0.7114 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.0469152.6406
Module start 'layout' 0.00570.0026 740.687539.4766
Module start 'content' 0.00830.7013 780.1641451.0469
Module end 'content' 0.70960.0017 1,231.21098.1250
Script end 0.7113  1,239.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4721160.0002
Check MTime0.00140.1975160.0001
Mysql Total
Database connection0.00090.130010.0009
Mysqli_queries0.670894.3041540.0124
Looping result0.00040.0577520.0000
Template Total0.681395.820.3407
Template load0.00240.335120.0012
Template processing0.678995.444320.3395
Template load and register function0.00010.020910.0001
states
state_id_array0.00130.183010.0013
state_identifier_array0.00100.137320.0005
Override
Cache load0.00190.2709110.0002
Sytem overhead
Fetch class attribute can translate value0.00040.062720.0002
Fetch class attribute name0.00090.129520.0005
XML
Image XML parsing0.00030.043620.0002
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00080.1084100.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs