Christopher Short Posted May 15, 2015 Share Posted May 15, 2015 Is it possible to have images be turned off on certain category levels? A simple check box for photo enabled would work for me. I would like to images for the manufacture tab, but do not need it for every sub level. Also, same thing for product images. Not all of them need image and it looks bad to have photo not available. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 15, 2015 Share Posted May 15, 2015 A category "level" is very arbitrary. An effect that happens on a third generation descendant for one category may also be wanted on the fifth generation descendant of a different category.So, any solution would probably have to identify a specific category and work on a per category basis.What we might think about doing is to replace the skin's existing "no_photo.jpg" image with a 1x1 transparent PNG file. The thing is, every skin I've seen gives a fixed amount of layout real estate to the image, so removing the image won't collapse the space around it. Unless you make edits to the CSS to solve that. Quote Link to comment Share on other sites More sharing options...
Christopher Short Posted May 16, 2015 Author Share Posted May 16, 2015 A category "level" is very arbitrary. An effect that happens on a third generation descendant for one category may also be wanted on the fifth generation descendant of a different category.So, any solution would probably have to identify a specific category and work on a per category basis.What we might think about doing is to replace the skin's existing "no_photo.jpg" image with a 1x1 transparent PNG file. The thing is, every skin I've seen gives a fixed amount of layout real estate to the image, so removing the image won't collapse the space around it. Unless you make edits to the CSS to solve that.I created a blank white image but it still spaces the names out with it.I wish we had a "use image" check box on the category when created and same thing for the products. Maybe have it default no image and when you turn the image option on it will adjust the spacing for it. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 16, 2015 Share Posted May 16, 2015 The page real estate for an image is controlled by CSS. CubeCart does not make changes to CSS. That is, the use of {$PLACEHOLDERS} will not work in CSS files.What we can do is use Smarty to test if the name of the image source has "noimage" in the <img> tag, then add some "on-demand" css styling that will collapse the area. Quote Link to comment Share on other sites More sharing options...
Christopher Short Posted May 16, 2015 Author Share Posted May 16, 2015 The page real estate for an image is controlled by CSS. CubeCart does not make changes to CSS. That is, the use of {$PLACEHOLDERS} will not work in CSS files.What we can do is use Smarty to test if the name of the image source has "noimage" in the <img> tag, then add some "on-demand" css styling that will collapse the area.What did you have in mind for that? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 17, 2015 Share Posted May 17, 2015 Ah, this is just a general discussion -- mentioning things that come to mind.We can do some experimenting in the Skins/Templates Support forum, or we can take it to email and keep hacking at it until we have made the skin bend to our will. If email, send me a PM with your email address. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.