cancel
Showing results for 
Search instead for 
Did you mean: 

Want to open a pdf on a link click in storefront. How to do this.

nikhil-ku
Explorer
0 Kudos

Want to open a pdf on a link click in storefront. How to do this.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

You can do this in a few steps:

In the cms cockpit:

  • Select the page and content on which you want to put your link
    -Click on the ”+” button in the section, you want to put your link ( if it’s marked red, click the override button and then the "+" button)

  • In Create / Add window choose new Component list click the "Link" option -> "Create new a Item" -> Set name and click "Done" button

  • Edit your created component and set the link name and URL address

If You wan't to use file from Your server:

  • Log into HMC site

  • Go to "Multimedia" -> "Media"

  • Create new Media

  • Upload file

  • Copy generated link

  • Paste Link into Component URL Adress with server adress before it

Regards,
Artur

nikhil-ku
Explorer
0 Kudos

Thanks for the comment. But I want to do with WCMS as i have cmslinkcomponent

Former Member
0 Kudos

You can use method from MediaModel.getDownloadURL() to get url of your pdf file And put this value to See pdf