Announcement

Collapse
No announcement yet.

More than one product image

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

    More than one product image

    Hi.

    I know there are several posts already about multiple images, but they don't quite seem to achieve what I want to.

    As well as a photographs, some products also need to have a CAD diagram showing detailed measurements and angles etc. It also needs to be 'clickable' to enlarge it.

    How do I go about doing this? I have seen something that Chris Dicken wrote but it didn't quite work how I wanted it to. I am using the Parent layout for thr product layout.

    Any help would be great. Thanks!

    Ben

    #2
    Hi Ben,

    I take it your already using the extended information feature for another image?
    So what we need are multiple popup images.

    There may be an easier way to do this but here's what I have come up with:

    1/ Open your overall layout template (Design | Options | Layouts | Click "Edit" on "Default Overall Layout" - this usually opens Act_Primary.html)
    2/ Inset the following code just above the </head> tag:

    <script language="JavaScript">
    <!--// beginning of Javascript script
    function popUp(url) {
    window.open(url, 'newwindow',
    'width=620,height=510,menubar=off,directories=off,toolbar=off');
    }
    // end of script -->
    </script>

    3/ Save the template.
    4/ Within Actinic go to Advanced | Custom Properties and create two properties - one called "IMAGE" and another called "URL"
    5/ Now open Act_ProductLine.html (or the product template you have assigned to the product) and insert:

    <A HREF="javascriptopUp('CUSTOMVAR:URL')"><img src="CUSTOMVAR:IMAGE"></A>

    Where you would like the smaller image to show on the product page.

    6/ Open the product details in question, click on the "Properties" tab and add the two customvars.
    7/ For the "IMAGE" var, enter the image you would like to show on the product page.
    8/ For the "URL" var, enter the image you would like to show on the popup. This can also be a custom web page.
    9/ Click "Use as CUSTOMVAR" for both properties.
    10/ Upload and test.

    Let me know if you get any problems.
    Regards,

    Toby Blanchard

    Comment


      #3
      Hi Toby

      Thanks for your reply. That method works perfectly.

      The only problem I am having with it, is that it puts a broken image link by the side of every single product in the site - this would be OK if I wanted an extra image by the side of every product, but it is just a few which need 2 clickable extra images.

      Other than that it works perfectly well. Any suggestions?

      Cheers Toby

      Ben.

      Comment


        #4
        Sorted it

        Just as I finished writing the last mesage, an idea came into my head.

        I saved a copy of Act_ProductLineRight as Act_ProductLineRightExtra

        i put the code for the extra image and url in the extra file and then selected this file in Actinic.

        It now works fine and I just select Act_ProductLineRightExtra for the products which need the extra image.

        Thanks again

        Ben.
        Last edited by bjh555; 21-Sep-2004, 10:39 AM. Reason: typo

        Comment


          #5
          That's the jobbie. Nice one
          Regards,

          Toby Blanchard

          Comment


            #6
            And to finish it off: If you edit ProductTemplates.ini (in Site1) and add (just below [Templates]) the line

            Act_ProductLineRightExtra.html=Product with extra popup image

            Then you'll make your custom template available in the drop down list at Product Layout when adding products.

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

            Comment


              #7
              Ahhhh.

              Thanks for that Norman. I was wondering if there was a way of doing this.

              Thanks. Works perfectly.

              Ben.

              Comment


                #8
                Error when creating a snapshot

                Hi

                When I create a snapshot, I get an error saying it cannot locate the file Act_ProductLineRightExtra.html it is in the site1 folder though. I have checked.

                What is wrong with it? And is there something I need to do to make it find it/locate it?

                Thanks

                Ben

                Comment


                  #9
                  Check the exact spelling of the HTML file - particularly if the file has an extension of *.htm and you have referred to it with an extension of *.html (or vice versa)

                  Comment


                    #10
                    Hi,

                    I have tried it out. But let say if i would like to add it in the Pop-out box? within the extended information/parent but where can i insert this HTML below then? Not productLine.html but?
                    <A HREF="javascriptopUp('CUSTOMVAR:URL')"><img src="CUSTOMVAR:IMAGE"></A>

                    Best Regards,
                    Swee
                    Http://www.hst.com.sg

                    Comment


                      #11
                      Ron

                      Please see the solution here:

                      http://community.actinic.com/showthread.php?t=9269

                      Comment

                      Working...
                      X