Download PDF's form webpage

General chit chat about razor, not specifically related to a topic but about razorCMS

Download PDF's form webpage

Postby JDM » Sun Oct 21, 2012 7:51 pm

Hi All

My support for Razor has left and I'm too familiar with using it but I need to enable the ability to have a PDF document downloadable form a webpage. I have uploaded the PDFs into the document area of Razor but I'm not sutre how to to link a document to the webapge itaself.

I can ee ow to set an exteranl link but I would like to have something like document pdf appear on the page and then when you click it iit either opens or you can the end user can download it?

Thanks in advance.
JDM
 
Posts: 1
Joined: Sun Oct 21, 2012 7:47 pm

Re: Download PDF's form webpage

Postby Adminer » Mon Oct 22, 2012 9:30 am

Hi!

1. Create a new folder, for example: 'upload', in your razorCMS folder.
2. Use chmod 774 only for this folder.
3. Upload your pdf files inside 'upload' folder.
4. Create in your content new hiperlink into one single file, for example like this:
http://mysite.com/upload/mydocument.pdf

CKeditor blade pack, and in source of your html code (source button in ckeditor):
Code: Select all
<p>
   Your pdf document in PDFformat: <a href="http://mysite.com/upload/mydocument.pdf">MyDocument.pdf</a></p>
<p>


Regards
Adminer
 
Posts: 578
Joined: Wed Apr 08, 2009 9:52 pm
Location: Poland


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron