Page 1 of 1

uploads module for downloading

Posted: Mon Dec 03, 2007 9:55 pm
by andyg
Can anyone tell me how to setup the uploads mod to download a word doc

Re: uploads module for downloading

Posted: Mon Dec 03, 2007 10:28 pm
by cyberman
You have to upload it the doc via uploads mod before. Then you will get an ID and a download link

{cms_module module='Uploads' category='categorie' mode='single' upload_id='id'}

Re: uploads module for downloading

Posted: Tue Feb 19, 2008 3:55 pm
by twiz
cyberman wrote: You have to upload it the doc via uploads mod before. Then you will get an ID and a download link

{cms_module module='Uploads' category='categorie' mode='single' upload_id='id'}
I'd like to display a file-list (a directory full of PDF files), so user can select (click on) which file to download.  How is this done? Thanks,

twiz/

Re: uploads module for downloading

Posted: Tue Feb 19, 2008 7:58 pm
by cyberman
Please make a look at the module help ;)

Code: Select all

{cms_module module='Uploads' category='categorie' mode='summary'}
or

Code: Select all

{cms_module module='Uploads' category='categorie' mode='detailed'}
should work.

Re: uploads module for downloading

Posted: Fri Feb 22, 2008 2:32 pm
by twiz
cyberman wrote: Please make a look at the module help ;)

Code: Select all

{cms_module module='Uploads' category='categorie' mode='summary'}
or

Code: Select all

{cms_module module='Uploads' category='categorie' mode='detailed'}
should work.
Thanks for the reply ...  I'm going through a learning curve. ;)

That works .... sort of.  Here's the output using the 'default' [detailed] template:

Code: Select all

Icon  	
Category 	PDF files
Id 	5
Name 	2007_summary.PDF
http://cmswebsite/admin/moduleinterface.php?mact=Uploads,m6,getfile,0&m6showtemplate=false&m6upload_id=5
Date 	2008-02-17 13:43:40
Author 	cmsadmin
Size (Kb) 	234
Summary 	2007 Year In Review
Summary 	2007 Year In Review
Description 	Here’s what we’ve been up to this year ...

Question: Is the user expected to click on:

Code: Select all

http://cmswebsite/admin/moduleinterface.php?mact=Uploads,m6,getfile,0&m6showtemplate=false&m6upload_id=5
... to download the file?

Re: uploads module for downloading

Posted: Fri Feb 22, 2008 2:49 pm
by twiz
Found it ... just after posting previous message (always happens ;)  Here's the link location in the template and its output:

From template:

Code: Select all

{$entry->summarylink}
From output:

Code: Select all

http://cmswebsite/index.php?mact=Uploads,cntnt01,getfile,0&cntnt01showtemplate=false&cntnt01upload_id=5&cntnt01returnid=162
Now to read-up further on things like :

Code: Select all

{$entry->summarylink}
etc..
Thanks again,

twiz/

Re: uploads module for downloading

Posted: Fri Jul 25, 2008 12:25 pm
by sn3p
To create a download link use {$entry->download_url}

Code: Select all

<a href="{$entry->download_url}">Download</a>