Page 1 of 1

uploading pdfs

Posted: Thu Apr 05, 2007 3:56 pm
by gogo123
Hi

I would like to upload pdfs on my site -I'm currently storing the pdf in /uploads/images directory and

using {cms_selflink page="/uploads/images/Annual Report 2005-06.pdf" img="/uploads/images/iconimg.bmp" width="126" height="131" imageonly=1}

but this does not appear to load pdfs

Any suggestions?

Re: uploading pdfs

Posted: Thu Apr 05, 2007 5:45 pm
by calguy1000
Try the uploads module.

Re: uploading pdfs

Posted: Thu Apr 05, 2007 10:53 pm
by kermit
{cms_selflink} doesn't link to FILES...well, you could use the 'ext' parameter and include the full url to the file:

  # (optional) ext - For external links, will add class="external and info text. warning: only text, target and title parameters are compatible with this parameter
  # (optional) ext_info - Used together with "ext" defaults to (external link).

i would either manually code the link or try the {filelink} custom tag found here (which i use):
http://wiki.cmsmadesimple.org/index.php ... #File_link

using {filelink} your code will look something like this (pulled from an actual page):

{filelink file='AGP.zip'}
{filelink file='AUDIO.zip'}
{filelink file='FIR.zip'}
{filelink file='HPMPRT.zip'}
{filelink file='HPNBUTIL.zip'}
{filelink file='LAN.zip'}
{filelink file='MODEM.zip'}
{filelink file='ONETOUCH.zip'}
{filelink file='README.TXT'}
{filelink file='TOUCHPAD.zip'}
{filelink file='USB2SER.zip'}
{filelink file='MODEM.zip'}
{filelink file='VIDEO.zip'}
{filelink file='WIRELESS.zip'}