mikej Posted January 28, 2011 Share Posted January 28, 2011 What code do I need to edit in order the increase/change the size of subcategory images? Is there a setting that needs to be changed in the BO image settings as well?Thanks Link to comment Share on other sites More sharing options...
mikej Posted January 28, 2011 Author Share Posted January 28, 2011 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 More sharing options...
Slokha Posted January 28, 2011 Share Posted January 28, 2011 Hi Mikej,I just Tried it, it's working.You can see results here:http://www.soft-guns.com/10-aeg-airsoft-gunsGo on your ftp:themes/your theme/ category.tplLine 39,41: replace "medium" by the size you wantI put "large" for the example Hope it's what you were looking for. I'm a beginner too. Link to comment Share on other sites More sharing options...
Slokha Posted January 28, 2011 Share Posted January 28, 2011 oh sorry! I was answering at the same time. Link to comment Share on other sites More sharing options...
fitgura Posted June 8, 2011 Share Posted June 8, 2011 I think is well but is totally not work for me, but I don't know why!!!could it be the ccc compression? Link to comment Share on other sites More sharing options...
fitgura Posted June 30, 2011 Share Posted June 30, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now