Jump to content

[Solved] How can I increase/change the size of subcategory images?


Recommended Posts

I've managed to solve how to change the size of the images.
For anyone that has the same problem, you need to edit line 34 in category.tpl

getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />



To have large images, replace 'medium' with 'large'.

getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'large')}" alt="" />



To keep the original size of the images, leave the quotes empty.

getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, '')}" alt="" />



This change to the code works, but if it is the wrong way to do it, please correct me.

Thanks,

Mike

Link to comment
Share on other sites

  • 4 months later...
  • 3 weeks later...

I just put the desired size directly in the tpl (550px X 120 px)


getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
                       {if $subcategory.id_image}
getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="550" height="120" />
                       {else}

                       {/if}

getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}




I tried to create a new image category in the admin area - name it to "subimages" and modified the tpl like this:

getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'subimages')}" alt="" width="{$subimagesSize.width}" height="{$subimagesSize.height}" />




Nothing works uznder 1.4 Please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!

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...