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.
Announcement
Collapse
No announcement yet.
Extended Information In PDF Format
Collapse
X
-
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.
NormanNorman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
-
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="javascript:ShowPopUp(\'CUSTOMVAR:PDFFILE\',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 - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
You can have a button (or an image) as the link. Replace the line
Code:if ( 'CUSTOMVAR:PDFFILE' ) document.write('<a href="javascript:ShowPopUp(\'CUSTOMVAR:PDFFILE\',CUSTOMVAR:PDFWIDTH, CUSTOMVAR:PDFHEIGHT)">CUSTOMVAR:PDFLINK</a>'); with if ( 'CUSTOMVAR:PDFFILE' ) document.write('<input type=button value="CUSTOMVAR:PDFLINK" onclick="ShowPopUp(\'CUSTOMVAR:PDFFILE\',CUSTOMVAR:PDFWIDTH, CUSTOMVAR:PDFHEIGHT)">');
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
Comment