In the DevHub builder, for some customers, it is possible to upload a PDF to our platform and display it as a link for website visitors to view and download.
Uploading the PDF
1. To begin, log in to the builder and navigate to the site and page where you want to add the PDF.
2. On the right, click and drag the "Content Editor" module onto the page. For now, it does not matter where you place this. More information about adding a content block can be found in the following article: Adding A Content Block (Text, HTML)
3. When you click into this new content block you've placed, you will see an editor menu appear in the top center of the screen. Select the down arrow on the right to display more options:
4. There will be an icon called "File" - select this:
5. Use "Select File" in the new pop-up window to upload from your device. Click "Upload" in the top right:
6. Following this, you will see the PDF in the list. Click on "View":
7. When the PDF opens in a new window, copy and paste the URL and save this for later. Most importantly, you will need to know the URL path/slug, which includes everything past the '.com'. An example would be: /stat/cache/files/example-file-name.pdf
8. Delete the original content module you dragged onto the page. This was used for uploading purposes only, and unless you were planning to create new content here, this should be removed.
Adding the PDF to Your Content
Go to the module on the page OR custom field in which you want to link the PDF.
Content Editor: In the case of adding the PDF link to a content module, you will need to be familiar with HTML and can add the following code (using the example PDF above) to your content:
<a href="/stat/cache/files/ms-essential-botanical-insecticide-specimen-app-61824-ac_1.pdf">Essential Botanical Insecticide</a>
Custom Field: If you are adding the PDF to a custom field, you can use the field editor to add a file using the same "File" icon noted at the beginning. Grab the URL and insert it as a link using the "link" icon to complete.
Be sure to save and publish your page when done.