PDA

View Full Version : Thumbnail


mrichards
23-Nov-2009, 12:21 PM
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.

peblaco
23-Nov-2009, 12:37 PM
<img id="thumbnail" src="NETQUOTEVAR:ProductThumbnailImageFileName" border="0">

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.

mrichards
23-Nov-2009, 12:45 PM
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

NormanRouxel
23-Nov-2009, 12:57 PM
Assuming that IMAGEFILE is one of your own user defined properties, you should use CUSTOMVAR:IMAGEFILE, not NETQUOTEVAR.

mrichards
23-Nov-2009, 01:05 PM
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

mrichards
23-Nov-2009, 01:13 PM
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...

NormanRouxel
23-Nov-2009, 01:17 PM
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.