Jump to content

Category Pictures


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...