Announcement

Collapse
No announcement yet.

Thumbnail

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

    Thumbnail

    Hi,

    I am integrating jQuery Fancybox with the products listings, in Actinic V7.0.7

    The fancybox is running fine but I can not get the thumbnail to appear on the page. The code for the Act_ProductImage.html is as follows:

    <script type="text/javascript">
    $(document).ready(function() {
    $("a#single_image").fancybox();
    });
    </script>
    <div align="center">
    <a href="NETQUOTEVAR:IMAGEFILE" id="single_image">
    <img id="thumbnail" src="NETQUOTEVAR:ProductThumbnailImageFileName" border="0"><br />
    enlarge image
    </a>
    </div>

    There are also 3 javascript calls in both Act_Primary.html and Act_BrochurePrimary.html.

    If you need to check the code it should be viewable at http://www.cardsforeveryone.co.uk although this is currently in production so may be up and down.

    #2
    I haven't tested your code, but just to check that you have your netquotevars in upper case as I don't think they work in lower case.
    Peblaco

    Comment


      #3
      Originally posted by peblaco View Post
      I haven't tested your code, but just to check that you have your netquotevars in upper case as I don't think they work in lower case.
      Sorry I have been testing alot of different netquotevars and copied the last one used

      Comment


        #4
        Assuming that IMAGEFILE is one of your own user defined properties, you should use CUSTOMVAR:IMAGEFILE, not NETQUOTEVAR.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          No I am trying to access the thumbnail from the standard box from the general tab in the product.

          NETQUOTEVAR:IMAGEFILE points to the image input box from the same tab, I am wondering if there is a NETQUOTEVAR that will access this property. The advanced guide's NETQUOTEVAR Dictionary explains that it is NETQUOTEVAR:PRODUCTTHUMBNAILIMAGE but whenever I do this the NETQUOTEVAR is not converted into a value but is let as a text string

          Comment


            #6
            Not a problem sorted it out myself, when you call the Act_ProductImage.html file it places either the thumbnail or large image in the document, the choice comes from the Act_ProductLine.html file and I had to move my custom code into the later file to get it to work.

            Thank for all the help though...

            Comment


              #7
              Yes. There isn't an atomic thumbnail filename variable. You have to use NETQUOTEVAR:PRODUCTTHUMBNAILIMAGE to display the thumbnail and this re-uses the Act_ProductImage.html template and spits out a complete <img .../> tag..

              A pain if you wanted different code within product and thumbnail images.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment

              Working...
              X