uploads module for downloading

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
andyg
Forum Members
Forum Members
Posts: 23
Joined: Fri Mar 30, 2007 7:07 pm

uploads module for downloading

Post by andyg »

Can anyone tell me how to setup the uploads mod to download a word doc
cyberman

Re: uploads module for downloading

Post 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'}
twiz
Forum Members
Forum Members
Posts: 13
Joined: Tue Dec 12, 2006 8:56 pm

Re: uploads module for downloading

Post 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/
cyberman

Re: uploads module for downloading

Post 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.
twiz
Forum Members
Forum Members
Posts: 13
Joined: Tue Dec 12, 2006 8:56 pm

Re: uploads module for downloading

Post 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?
twiz
Forum Members
Forum Members
Posts: 13
Joined: Tue Dec 12, 2006 8:56 pm

Re: uploads module for downloading

Post 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/
sn3p
Forum Members
Forum Members
Posts: 169
Joined: Mon Oct 15, 2007 2:27 pm

Re: uploads module for downloading

Post by sn3p »

To create a download link use {$entry->download_url}

Code: Select all

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

Return to “CMSMS Core”