Before importing the product downloads into the CMS you will need to setup the CSV file and upload all of the required PDF files to the Media Library for the website that you are going to import into.
The CSV file should be setup with 3 columns:
- WEB_SLUG
- LINK
- LINK_TEXT
The WEB_SLUG column should contain the Web Slug of the product that you wish to setup the download link for, taken from Khaos Control.
The LINK column should contain the URL of the file or YouTube video that you want to link to.
The LINK_TEXT column should contain the text to display on the front-end of the website (this is not required for YouTube video links).
The URL for PDF files can be obtained from the Media Library by clicking on the PDF file you have uploaded, which will bring up a popup with information about the file, including the full URL:
It is worth noting that the file URLs follow a standard structure:
You can use this structure to bulk create URLs if you know the filename and when the file was uploaded to the Media Library.
If you want to have multiple downloads for each product, just add in extra lines with the same WEB_SLUG and the new LINK and LINK_TEXT.
NOTE: If you import a CSV file that contains entries for Web Slugs that are already setup in the CMS it will fully over-write the existing entry with the new links, it will not append them, so make sure any existing links are also included in the CSV file.
NOTE: The website can handle importing links to external PDF files as well as those uploaded to the Media Library, but if an external PDF file is linked to the PDF preview won’t work, it will just show the download links.
1. Log into the CMS.
2. On the left-hand side menu, go to “Product Downloads”.
3. There is a new section at the top of this page where you can select a CSV file and import it to generate the entries for each product.
4. Click on the “Choose file” button (or similar depending on what browser you are using) and select the CSV file you have setup.
5. Click the “Import” button to import the product download links.
6. If there are any errors during the import, due to incorrect data, etc then you will be informed of them when the import is complete. You can decide whether these need fixing or not, and you can just import the fixed CSV file as required.
An option has been added to allow for bulk deleting of product downloads via a CSV file. To do this you will first need to setup a CSV file with the following column:
- WEB_SLUG
The WEB_SLUG column should contain the Web Slug of the product that you wish to remove, taken from Khaos Control.
1. Log into the CMS.
2. On the left-hand side menu, go to “Product Downloads”.
3. In the new section, click on the “Choose file” button (or similar depending on what browser you are using) and select the CSV file you have setup.
4. Tick the “Bulk Delete Product Downloads” checkbox
5. Click on the “Delete” button, and then click on “OK” in the popup that comes up to confirm that you wish to delete these entries.
Note: Bulk deleting product downloads in this way cannot be undone, so any incorrectly deleted product downloads would have to be re-imported.
1. Log into the CMS.
2. On the left-hand side menu, go to “Product Downloads”.
3. In the new section, click on the “Export Downloads” button, this will generate the CSV file of the product downloads.
4. Once the CSV file has been generated you will be given a link to download it, just click this.