Jump to content

Recommended Posts

I need some help with new image size for subcategories thumbnail. For now I have it working, but thumbnail is displayed only when a subcategory has category_default image uploaded. Then after I add a thumbnail to such category it is shown. But if I delete category_default image it is also deleting subcategory thumb. Any way to avoid such behavior?

 

What I did:

  • Added new image size for categories and disables medium_default for them
  • Added CategoryController.php into /override/front with included new size
  • Added AdminCategoriesController.php into /override/admin with new size name (replaced medium to new name)
  • Modified category.tpl with new image size name and image sizes
  • Modified CSS to show images correctly.

As I said before it is working well.

But looks like category_default and category thumbnail are linked between them and we must unlink them somehow.

Any ideas from the community?

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