- Posts: 404
COMMUNITY FORUM
Default item image
- Odin Mayland
- Topic Author
- Offline
- Platinum Member
Less
More
12 years 7 months ago #62967
by Odin Mayland
Default item image was created by Odin Mayland
I am trying to have a default k2 item image. It will be a png with the words "Image not available"
I thought I would set the K2 Parameters/Image/Placeholder image for category if none exists to Show
then make the item image use that same placeholder image.
I replaced the components/com_k2/images/placeholder/category.png with my new "Image not available" image.
I assume that I am supposed to edit the item.php but I don't know how. Here is my guess that is not working:
I thought I would set the K2 Parameters/Image/Placeholder image for category if none exists to Show
then make the item image use that same placeholder image.
I replaced the components/com_k2/images/placeholder/category.png with my new "Image not available" image.
I assume that I am supposed to edit the item.php but I don't know how. Here is my guess that is not working:
Log in or Create an account to join the conversation.
- Aaron
- Offline
- Premium Member
12 years 7 months ago #62968
by Aaron
Replied by Aaron on topic Re: Default item image
To be honest, I am still trying to work out some issues myself with the code... but I can offer a few suggestions that might help... I have been adjusting the overall template but haven't gotten to this file yet... I might be wrong but according to my experience so far, here are my suggestions...
In the item.php:
Here is the original code block that you need to adjust:
In the item.php:
Here is the original code block that you need to adjust:
Aaron :)
Please Log in or Create an account to join the conversation.
- Aaron
- Offline
- Premium Member
12 years 7 months ago #62969
by Aaron
Replied by Aaron on topic Re: Default item image
Seems like I also may have bitten off more than I can chew this early on a Saturday...
I had the code all wrong... it is a little more complicated..
You will need to add the following code (untested at the moment):
I had the code all wrong... it is a little more complicated..
You will need to add the following code (untested at the moment):
Aaron :)
Please Log in or Create an account to join the conversation.