Jump to content

[SOLVED] How to link a PDF uploaded from "Catalog -> Attachments" in a CMS page?


Recommended Posts

Hi, this is my first request,
thanks for this forum!

I upload a PDF file from Catalog > Attachments, and I want to link it in a page generated from the CMS (Tools > CMS)

I see when I upload a file it uploads to "downloads" folder, but with a very rare name and without extension .pdf.

If I try to call like http://www.domainname.com/downloads/archivename it go to error page and the same result if a + the extension .pdf like http://www.domainname.com/downloads/archivename.pdf

Can any charitable soul help me?
Thanks so much!

Link to comment
Share on other sites

The "Attachments" feature was designed to add files to product pages, not CMS pages. You can, however, manually put a link in a CMS page like the following:

<a href="/attachment.php?id_attachment=1">PDF



Change 1 to the ID of the attachment you want to download.

Link to comment
Share on other sites

  • 1 month later...

Nice solution. But still would like to ask my silly question. How do I get attachment to be disaplayed in product's details? Where should I see it? I add an attachment in general section Attachments, and then assign it to a particular product in its "properties". But when I open this product I can't see any link to the file attached... Am I missing some additional settings/modules? Using version 1.2.2.0.
Thanks in advance.

Link to comment
Share on other sites

  • 2 months later...

Ok, figured out that I can use the html code in back office of the cms page I want to edit - and paste this code in here. It works.

But is it possible to have the pdf logo like you see on most other web sites where there is the 'pdf' symbol rather than just text?

Link to comment
Share on other sites

  • 1 year later...

Digging this one up-

 

This is still not clicking for me - I want to link to attachments from a CMS page, but will need steps for a newbie.

 

In Rocky's solution, step by step, how/where do I add that code?

 

jdmorrisn pastes the code in the CMS BO...but where?

 

Thanks for any help -

 

 

ETA - did what I need to do by uploading as an Attachment, then simply pasting that link in the CMS page editor.

Link to comment
Share on other sites

  • 1 year later...

The "Attachments" feature was designed to add files to product pages, not CMS pages. You can, however, manually put a link in a CMS page like the following:

 

<a href="/attachment.php?id_attachment=1">PDF

 

Change 1 to the ID of the attachment you want to download.

 

It does not work. It returns me to the home page.

Link to comment
Share on other sites

×
×
  • Create New...