Jump to content

Image size in subcategory


Recommended Posts

i want change the size in list of subcategory (standard 125 x 125).

 

I have create a new type of image anche call medium_default_cat 260 x 70 only category

 

In the category.tpl i change

 

{if $subcategory.id_image}
   <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{else}
   <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{/if}

 

IN

 

{if $subcategory.id_image}
   <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default_cat')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{else}
   <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{/if}

 

But i don't see the new pic with new size but the standard when not exist image.

 

Why? where i wrong?

Link to comment
Share on other sites

×
×
  • Create New...