How to show downloadlink to binary file?

Author Message

Dennis de Wit

Friday 05 March 2004 7:08:00 am

I have created a content class for storing files with title, date and the file (binary).
Now i want to show a list of all files with a clickable link to download the file.

How to do this, i don't see it documented anywhere

Björn Dieding@xrow.de

Friday 05 March 2004 7:34:20 am

simple as hell

{section loop=$list}
{attribute_view_gui attribute=$:item.object.data_map.fileattribiutesname}
{/section}

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

javier sanchez

Saturday 06 March 2004 1:50:16 pm

i want to display contents from a table which has 2 fields, each row will be an <option> of the <select>

table = (country | city)

i fetch the db, an array return as result, this array will have field names as keys pointing to arrays of data, my main problem is how i loop elements from an array, with different keys

my code is something like this:
$elements == resulting array from db fetch

<select name="sel">
{section name=seccion loop=$elements}

<option value="{$seccion:item.city}">{$seccion:item.country}</option>

{/section}
</select>

aany help on this topic or in "how to loop an bi-dimensional array with keys" will be great

thx, javier sanchez-galan

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 03:16:49
Script start
Timing: Jan 19 2025 03:16:49
Module start 'layout'
Timing: Jan 19 2025 03:16:49
Module start 'content'
Timing: Jan 19 2025 03:16:50
Module end 'content'
Timing: Jan 19 2025 03:16:50
Script end

Main resources:

Total runtime1.5448 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 595.2266152.6406
Module start 'layout' 0.00710.0039 747.867239.4766
Module start 'content' 0.01091.5324 787.3438567.8594
Module end 'content' 1.54330.0015 1,355.203112.1250
Script end 1.5448  1,367.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2258160.0002
Check MTime0.00140.0881160.0001
Mysql Total
Database connection0.00130.086910.0013
Mysqli_queries1.488896.3704590.0252
Looping result0.00060.0374570.0000
Template Total1.499197.020.7495
Template load0.00250.160520.0012
Template processing1.496696.876020.7483
Template load and register function0.00030.018210.0003
states
state_id_array0.00170.110310.0017
state_identifier_array0.00200.132520.0010
Override
Cache load0.00190.1245270.0001
Sytem overhead
Fetch class attribute can translate value0.00070.042130.0002
Fetch class attribute name0.00100.061540.0002
XML
Image XML parsing0.00080.052030.0003
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00210.1366160.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs