Forums / Templates, Stylesheets, Page Layout / Top Category image size with Subcategories

Top Category image size with Subcategories

Locked

Views: 4,087

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Oct 2006, 8:17 AM
#1
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Top Category image size with Subcategories

Hi,

I have been reading forum about category image sizes but can't see any solution to make category image smaller when it is displayed with subcategory links on category page.

I have set up all the images to be 100px wide on Admin -> Configuration -> Images but still my category image is as big as the picture is in reality. I would not like to make separate pictures for categories but I use the quite small (about 200 px wide) picture that I need for other images on the webshop.

I looked also the template for the categories (tpl_index_categories.php) and I do not see there would be anything to say for ZC to put the image in the size of set up in configuration. What should I do?

if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') {
// categories_image
if ($categories_image = zen_get_categories_image($current_category_id)) {
?>

<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image); ?></div> <?php } } // categories_image ?>

Thanks in advance!

Elli

I may be blond but at least I found Zen.

1 Oct 2006, 11:26 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Top Category image size with Subcategories

I have set up all the images to be 100px wide on Admin -> Configuration -> Images
Did you change these default settings to 100px?

Category Icon Image Width - Product Info Pages 60
Category Icon Image Height - Product Info Pages 48

If so, go back and start with these velues and adjust as desired

Also check this setting in images > Image - Use Proportional Images on Products and Categories > and set to "1"

Zen-Venom Get Bitten

1 Oct 2006, 12:04 PM
#3
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Top Category image size with Subcategories

kobra:

Did you change these default settings to 100px?

Category Icon Image Width - Product Info Pages 60
Category Icon Image Height - Product Info Pages 48

If so, go back and start with these velues and adjust as desired

Also check this setting in images > Image - Use Proportional Images on Products and Categories > and set to "1"

Actually in above settings I have only 50px as width but I took that totally off in the end. I do not need category images on Product Info pages.
What I am talking about is the situation when category is displayed with subcategory links on category page. So, there's the image of the top category and there's subcategory links as text. In this occasion I would need to finetune the size of the TOP Category image.

The Proportional Images I have set up as "1".
But as you can see in the template code of the image for the category page, there's actually no links for sizes at configuration. I think that is the problem, so the system is not ready for that but I guess it can easily be by adding proper code and for example use the Small Image size as constant name. I just do not know how to do it.

Elli

I may be blond but at least I found Zen.

1 Oct 2006, 12:52 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Top Category image size with Subcategories

I only am armed with wrenches, no code pencils...you seem to know more about code than I...maybe another more adept at code will chime in.

Zen-Venom Get Bitten

4 Oct 2006, 7:31 AM
#5
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Top Category image size with Subcategories

Anybody has any answer?

I may be blond but at least I found Zen.

31 Oct 2006, 9:36 AM
#6
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Top Category image size with Subcategories

This may be fixed in the newest release, 1.3.6 now? Is it so?
There was something about Top Category pics in the List of Changes.

Elli

I may be blond but at least I found Zen.