Jump to content

how to have different images for same category?


Recommended Posts

I am not aware of any module, but other people might know :)

Are you a coder? I can give you some hints if you are, but it's a rather broad modification to be convered in a forum topic!

 

To change the size of subcategories' thumbs, you can go 2 ways:

1- go to images -> preferences and change the medium size. Of course, this will affect all other images of that size

2- more complex! You can create a new image type, say, subcategories. Then locate category.tpl in your theme's folder, and edit the subcategories images, from, say

 

<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />

 

to

 

<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'subcategories')|escape:'html'}" />

Link to comment
Share on other sites

Hi Im not much of a coder.

but i tried doing that and it kept the subcategory box as 58x58 but it made the pic the size of the "new subcategory" size, and therefore resized into the 58x58 box. if you know what i mean basically the box didnt change size

Link to comment
Share on other sites

http://www.sophielam.co.uk

 

Im trying to change the size of the small box. here

 

http://www.sophielam.co.uk/index.php?id_category=6&controller=category

 

and ideally i would like a different pic for the big picture here

 

http://www.sophielam.co.uk/index.php?id_category=7&controller=category

 

 

cos having one pic for both just doesnt work

Edited by hamster88 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...