The file app/code/core/Mage/Cms/etc/config.xml defines the filetypes that can be uploaded, starting around line 110. To allow PDF’s through the “link” icon in the WYSIWYG, I modified the code so the allowed file types code looks like this:
Thank you so much for this - I can now upload PDFs. However linking to them is another story. Testing the produced link gives a skin image result - rather than the pdf file.
Please try out my method below. I have supplied this technique for all Magento Users from Beginners to Pro’s to use. I use this method for linking PDF files to the Products we Manufacture.
You can view this feature live at ualstore.co.uk and scroll down. You will see the Datasheet link under “Manufacturer”. If you need any more help, please reply to this thread.
This is the easiest, quickest and FREE method I have used.
1 - Create a folder on your server for your downloadable information. I am using Datasheets which begin with code X. Therefore for simplicity I named the folder “x”. I then uploaded ALL of my datasheets to this folder on my server. Whilst doing this, I downloaded a PDF Image and threw this in the folder too.
2 - Go to “Attributes/Manage Attributes” and add a new Attribute. Attribute Code for me was datasheet. I chose yes for available in searches as some customers will know what datasheets they are looking for, or at least the X codes will bring a selection. I also chose Visible on product view and used in product listing. Then go to Manage Label / Options. I named mine Datasheet in the Admin box. Save the new attribute.
3 - Go to Attributes. Manage Atribute Sets and open your Attribute Set. On the right you should now see this new Attribute (again, mine is datasheet. Drag the Attribute and drop it where it is required to show. I already had an Attribute called Manufacturer, so under here was perfect. Click Save Attribute Set.
4 - OK so now when you go to your existing Product in “Manage Products”, you should have the “Datasheet” option. For this part I created some coding in a basic WYSIWYG Editor. This was the code I used :
For you, just replace “MYDOMAIN” with yours of course, replace the “x” with the folder you uploaded your data and image too and of course change the name of the image to the one you uploaded to the folder. The main thing you have to do is link your data, the MYDATASHEET.pdf, just overwrite it with the name of the file you want your customers to read.
When you now view your Products it should say Datasheet (or what you chose) underneath with an image and a link into the file in your folder.
I hope this helps some people and it is worded to help novices and intermediates. If you need more help on this topic, please reply to it and I will help you solve this.
P.S this method will save you at least £55. Enjoy!
I used CreedFeed’s method and was able to upload a PDF document, but when I went to insert it, the link form would refresh and not do anything. I’ve successfully gotten this to work on Magento version 1.3, but not 1.4. Has anyone successfully done this using Magento version 18.104.22.168?