Announcement

Collapse
No announcement yet.

Extended Information In PDF Format

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

    Extended Information In PDF Format

    How would i get actinic to load a pdf file for the extended information for a product, i think it is something to do with a custom var but cant seem to get it working. The pdf file name will change depending on the product.
    http://www.phoenixdirectuk.co.uk
    http://www.inkdeals.co.uk
    http://www.computerfairdeals.co.uk
    http://www.computerfairink.co.uk
    http://www.bestprceink.co.uk

    #2
    You can use the Product Details / General / Information Link Text for a link to a pdf file. If the file is on your system use Browse to find it and Actinic will upload it for you. If it's a reference to an off-site manufacturers page then put in the full URL instead.

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman that was very easy, just never done that before
      http://www.phoenixdirectuk.co.uk
      http://www.inkdeals.co.uk
      http://www.computerfairdeals.co.uk
      http://www.computerfairink.co.uk
      http://www.bestprceink.co.uk

      Comment


        #4
        You're welcome.

        There is a way to get that PDF into a popup page but it's much more tricky.

        Code:
        Making a PDF (or other file a popup).
        
        Create Custom Properties called
        
        PDFFILE
        PDFLINK
        PDFWIDTH
        PDFHEIGHT
        
        go to Design / Options / Site Defaults and set Property
        
        PDFLINK to "Click for more..."
        PDFWIDTH to 600
        PDFHEIGHT to 700
        (if using business uncheck Searchable and check Use as CUSTOMVAR)
        You can change these to suit you needs.
        
        
        Put the following code into the Product Template where you want these links to appear.
        
        
        <script language=JavaScript>
        <!--
        if ( 'CUSTOMVAR:PDFFILE' ) document.write('<a href="java&#115;cript:ShowPopUp(&#92;'CUSTOMVAR:PDFFILE&#92;',CUSTOMVAR:PDFWIDTH, CUSTOMVAR:PDFHEIGHT)">CUSTOMVAR:PDFLINK</a>');
        // -->
        </script>
        
        
        When you want a PDF popup.  
        Save the pdf in the Site1 folder.
        In the Product Details / Properties, select PDFFILE
        Enter the name of the file (including the .pdf).
        Check File Name.  Leave Use File Contents unchecked.
        (if using business uncheck Searchable and check Use as CUSTOMVAR)
        
        You can also set PDFLINK, PDFWIDTH and PDFHEIGHT at the Product level if that's useful.
        Norman
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          You can have a button (or an image) as the link. Replace the line

          Code:
          if ( 'CUSTOMVAR:PDFFILE' ) document.write('<a href="java&#115;cript:ShowPopUp(&#92;'CUSTOMVAR:PDFFILE&#92;',CUSTOMVAR:PDFWIDTH, CUSTOMVAR:PDFHEIGHT)">CUSTOMVAR:PDFLINK</a>');
          
          with
          
          if ( 'CUSTOMVAR:PDFFILE' ) document.write('<input type=button value="CUSTOMVAR:PDFLINK" onclick="ShowPopUp(&#92;'CUSTOMVAR:PDFFILE&#92;',CUSTOMVAR:PDFWIDTH, CUSTOMVAR:PDFHEIGHT)">');
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            works a treat, another trick from up your sleeve, thanks
            http://www.phoenixdirectuk.co.uk
            http://www.inkdeals.co.uk
            http://www.computerfairdeals.co.uk
            http://www.computerfairink.co.uk
            http://www.bestprceink.co.uk

            Comment

            Working...
            X