How to Link to PDFs and Other Files in Joomla

One of the things that many people use their websites for is sharing documents. Many organizations produce a large number of documents and need to make them available on their site.

In this tutorial, we'll show you how to share PDF documents in Joomla.

OSDownloads is the easiest way to add downloads to Joomla. OSDownloads gives you a flexible and reliable Joomla downloads directory that you can use to store PDFs. If you have a lot of PDFs and other files, OSDownloads is a good place to start.

If you'd like a full guide to OSDownloads, click this link.

OSDownloads supports PDFs, no matter where they're located. You can decide to upload the file or enter the URL if the file is on Amazon, Dropbox, Box or another service.

upload and url options

OSDownloads allows you to add Joomla's custom fields to your downloads, so you can show lots more information about your files.

custom file fields link

OSDownloads enables you to collect an email in exchange for downloads. But you can also use Joomla's custom fields to ask for more details such as name, phone, and interests during the download process.

It is possible to show your PDFs inside the main OSDownloads directory. However, you can also show downloads inside Joomla articles. If you're using OSDownloads Pro, you can use the following shortcode in your articles to display the download button:

{osdownloads download_button id-of-the-file "Custom text"}

Here are the three different parts to this shortcode:

  • osdownloads download_button ... this part never changes.
  • id-of-the-file ... this is the ID number for the file.
  • "Custom text" ... this is what visitors will click on.

You can find the ID number for the file, by visiting Components > OSDownloads Pro > Files. In this case, the ID number is 1.

file id

Here's an example of OSDownloads Pro download buttons that we created for our customers at Joomlashack.com:

download button at joomlashack.com

Here's how an OSDownloads Pro download button shortcode would appear in a Joomla article:

download shortcode in article

When you publish the code, the link will appear as in the image below.

download button on front page


What's Next?

Save $1,000's when you sign up for Joomlashack's Everything Club.

You will get your hands on our extensive range of over 20 extensions, plus legendary support!

Click here to join the Everything Club