Announcement

Collapse
No announcement yet.

Press a button - download a pdf file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Press a button - download a pdf file

    Please forgive my lack of html knowledge.

    I have inserted a button in a product page to download and display a datasheet pdf file.

    Can anyone help me with the html code need to download the pdf file (resident in the main folder as a result of uploading as an additional file and display in a new window)?

    I seem to have had a mental block with everything else to do and seem unable to work it out . I have searched the posts etc.

    Thanks

    John
    John Legg
    The Debug Store

    sigpic
    http://www.TheDebugStore.com

    #2
    <a href="http://www.mystore.co.uk/acatalog/example.pdf" target="_new">Download PDF</a>

    Why don't you use the link tab and make your job easy?

    Comment


      #3
      Use Jont's idea but remember to keep your PDF in the Site folder.

      You may also have to add it to Design / Additional Files to nudge Actinic into uploading it for you. Actinic automatically detects and uploads image files but I've a feeling it fails to detect PDF's.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Originally posted by NormanRouxel View Post
        Use Jont's idea .... .
        or Lee's.......

        Comment


          #5
          Oops. I meant Lee'nts.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Thanks, of course.

            The filename is stored as a custom variable for each product. How can I construct the full URL for the href parameter based on this?

            John
            John Legg
            The Debug Store

            sigpic
            http://www.TheDebugStore.com

            Comment


              #7
              You could use <actinic:variable name="CatalogURL" /> which takes the store folder name then put the custom variable on the end.
              Peblaco

              Comment


                #8
                Why don't you use the link tab and avoid all problems?

                Comment


                  #9
                  Thank you Louise

                  This takes me further - there is the last final issue to solve.

                  The variable is set setup by an inbuilt Actinic funtion which allows one to browse the folder structure to select a file. The complete path+ the filename is then inserted into the custom variable. This would need to be removed leaving just the filename.

                  I do not have any current experience of doing this so some help would be appreciated.
                  John Legg
                  The Debug Store

                  sigpic
                  http://www.TheDebugStore.com

                  Comment


                    #10
                    The site layout uses buttons to implement a range of functions. How would the Link Tab work with these? I am not sure what you mean.

                    eg: http://www.thedebugstore.com/acatalo...ace__1494.html
                    John Legg
                    The Debug Store

                    sigpic
                    http://www.TheDebugStore.com

                    Comment


                      #11
                      Originally posted by johngwms View Post
                      The variable is set setup by an inbuilt Actinic funtion which allows one to browse the folder structure to select a file. The complete path+ the filename is then inserted into the custom variable. This would need to be removed leaving just the filename.
                      The browse facility on the link tab does all of this for you also. All you need to do is convert the link to be an image as you seem to be doing anyway. Get a standard link showing on screen that links to your pdf first, that's standard functionality to do that. Then the last bit can be to convert to an image.

                      Comment


                        #12
                        Lee

                        Where will I find the Link Tab? In which dialogue?
                        John Legg
                        The Debug Store

                        sigpic
                        http://www.TheDebugStore.com

                        Comment


                          #13
                          On any product or any fragment.

                          Comment


                            #14
                            Lee

                            I have found and tried the Link Tab (I assume I have the right one) but it only leaves a text link at the bottom of the product description.

                            I am using a button to make the link stand out more. This still leaves me with a problem.
                            John Legg
                            The Debug Store

                            sigpic
                            http://www.TheDebugStore.com

                            Comment


                              #15
                              So move it to where you want it to show in the product layout and adjust the code to use your image instead of link text, which i presume you've done on the others. I'm not getting why you are confused at this point?

                              Comment

                              Working...
                              X