Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2016 at 04:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2016 at 01:02 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 10, 2016 at 01:06 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.