Forums / Setup & design / How to show downloadlink to binary file?

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