Forums / Templates, Stylesheets, Page Layout / auto-adjust number of product thumbnails in a row?

auto-adjust number of product thumbnails in a row?

Locked

Started by blag on 22 May 2007, 3:37 PM · Views: 958

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 May 2007, 3:37 PM
#1
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

auto-adjust number of product thumbnails in a row?

I am using the Bare Bones template, which is a three-column fluid design. The left and right columns are fixed width, and the center column can grow or shrink.

I have contacted the author of the template about my problem, but haven't had a reply, so I'm posting this question here in the hope that someone would be able to assist.

I can see the option to set the number of images in a row (in the center column) and have set this to '3', but in reality I would like to set a 'minimum' number of images and allow the number of images in the center column to increment as the center column enlarges sufficiently to accommodate more, because in some instances (e.g. a 1280 wide monitor) the space between the three images looks strange!!

Any clever and helpful guys out there got a solution to this?

I would really appreciate any assistance or guidance.

(I posted this elsewhere in the forum, but got no replies, so I'm hoping that I may do better here!!)

22 May 2007, 3:51 PM
#2
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: auto-adjust number of product thumbnails in a row?

This is just an idea and not really an answer; I know there are scripts out there that will detect a resolution and load a file given said resolution . . .

But I don't know that this would work as the number of items to display is set in the admin as opposed to any css controls that I know of.

If you can find a way to control it via css then you could tell the script to load which ever css you needed.

just a thought, not a good one mind you, but a thought

Samuel Turnmire
co-Founder
geekFoundry

23 May 2007, 6:44 AM
#3
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

Re: auto-adjust number of product thumbnails in a row?

Hi

I can see that this is going to be quite problematic, because there isn't a bunch of responses. I am not entirely sure what 'The Patch' means, but I suppose he is suggesting that it would be possible to detect the pixel width of the window and thereby adjust the number of images in a row and pass that info to Zen Cart so that the script can adjust the number of images in the row. It may well be that there are scripts out there - but where to find them???

23 May 2007, 9:57 PM
#4
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: auto-adjust number of product thumbnails in a row?

blag:

Hi

I can see that this is going to be quite problematic, because there isn't a bunch of responses. I am not entirely sure what 'The Patch' means, but I suppose he is suggesting that it would be possible to detect the pixel width of the window and thereby adjust the number of images in a row and pass that info to Zen Cart so that the script can adjust the number of images in the row. It may well be that there are scripts out there - but where to find them???

Call me Patch,
Google is my friend, try searching for 'Detect Resolution script' ; I had great success with this. Mind you, I'm not saying it's easier and it may not work at all, just trying to offer some direction.

Samuel Turnmire
co-Founder
geekFoundry

24 May 2007, 8:10 AM
#5
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

Re: auto-adjust number of product thumbnails in a row?

Patch: Thanks for the further advice. I'll let you know how I get on.