[ic] Thumbnail instead of text list on search?

Paul Jordan interchange-users@icdevgroup.org
Thu Dec 5 12:25:56 2002


> Hello,
>
> I've been pouring over the documentation but as of yet have
> been unable to
> find an answer to my question. Currently I am using the most
> recent version
> of interchange, with the admin interface and I have been
> unable to find out
> how to get thumbnail images to display on the product search results.
> Currently I am also using the default hardware store, and
> have modified it
> to my needs.
>
> I am aware there is a product results html page where it
> controls how the
> products are displayed...I was wondering how to display the following
> information, and where should I place the tags inside this html file?
>
> 1) Product thumbnail image
>
> 2) Product price
>
> Basically I'm attempting to display the thumbnail image in a
> list instead of
> the product name.
>
> Any assistance would be very helpfull :)
>
> -James

Hi James

It has been awhile since I used a stock foundation but if I remember
correctly the price shows up on the results page already. I was going to
confirm but the demo at devgroup seems like it is being "explored" if
you know what I mean :)

Anyways, I believe foundation sets up image resources like this for
results.html:
 <img src="__IMAGE_DIR__/[item-field thumb]">

You would just need to make sure the results page returns this field
"thumbs" from products table, and insert the above img src into
results.html. You would need to make sure your "thumb field is properly
filled.

I have been a long supporter of setting up variables for image types,
and just using the sku of an item as the image name.

I set up these
   THUMB_DIR	/im/images/thumbs	Directories and Paths
   ITEM_DIR	/im/images/items	Directories and Paths
   COMP_DIR	/im/images/comps	Directories and Paths
   ...etc

In those directories I will place a thumbnail fo an image, or a large
pic, or a free comp of an image, them my image calls look like this:
 <img src="__THUMB_DIR__/[prefix-code].jpg">
 <img src="__ITEM_DIR__/[prefix-code].jpg">

This does several things. One, it forces a very clean and intuitive
naming convention for your products images. Two, it takes less room in
your products table, seeing as it already has/needs a code column... you
could effectively delete 'image' 'image_large' and 'thumb'. Also, it
saves time WRT database entry.


Paul