This is a fallback method of outputting a file. We recommend only using this method whilst outputting files in Rich Text Editor.
Using liquid to include files is a much safer option- if the file is changed in future, the URL will also change.
Read more about including assets: Assets
You can link to a file or document by using the direct URL to the file. Firstly we'll have to retrieve the files URL.
Upload the file you'd like to link to into CMS/ File Manager. If you're using an image add the file to "Images", documents can be stored under "Documents".
Next we need to get the link of the download/ window you'd like to link to, to do this simply click the 'Download' button:
This will take you to the download URL, if this were a PDF it'll be displayed as so, same goes for other file types such as images. Copy the URL that this directs you too:
Now we have the location the file will be downloaded from. If you add this link to a page/ content section it will direct users to a preview of the file, from here they'll have the option to download!
If you copy the link as plain text, it will output on the page as so. If you'd like a word to link to the download, for example "Dummy PDF" we'd recommend outputting it in an Anchor element:
<a href= " link here " > 'Dummy PDF' </a>
Inserting Links into Rich Text Editor:
There is a shortcut that allows you too insert links without writing the Anchor element. Go to Blog > Content Section, here there will be an "Insert Link" on the toolbar (above the Rich Text Editor):
- File Manager - Introduction
- File Manager - Creating A Folder
- File Manager - Uploading A File
- File Manager - Downloading A File
- File Manager - Deleting Files