Keyword

Default Image for items.

  • Ruslan
  • Ruslan's Avatar Topic Author
  • Offline
  • New Member
More
13 years 3 months ago #97348 by Ruslan
Default Image for items. was created by Ruslan
Hi all. My English is very bad, because I'm Russian. I have a question and I need help. In the K2 component in creating the category of materials(item) is a function to display an image by default. For such materials(item) there. So when I create a new material(item) into categories and do not add to his image and then open up this stuff on my siteI see   that the template is broken, but if I add an image into the material(item), the pattern becomes normally.

 

Help me please to make the default image for materials(item) as is done for the categories and subcategories!

Thank you in advance for help.

but if I add an image into the material, the pattern becomes normally.

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #97349 by william white
Replied by william white on topic Default Image for items.
you will probably need to create a default item and add an image to it

find the image that was created in the size your using and rename it to something like cat_default_image.jpg

Create an override

Edit category_item.php and search for <!-- Item Image -->

- look at that code and notice there is an empty condtion

take that out and use a if else endif block with the same code or

display the image you created

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum