Keyword

Set K2 Itemimage in database

  • Santana Moll
  • Santana Moll's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago - 9 years 1 month ago #146737 by Santana Moll
Set K2 Itemimage in database was created by Santana Moll
Hi there,

I have a problem with the server so saving doesn't work now, as the site is online and I need a qiuck fix I would like to set the K2 Item iamge in the database itself. This works for the galleries and text but I can't see any reverence to the Item image.

Does someone know where it gets it link to the image, so K2 knows there is a image set and where to find it.

I know it will look for media/K2/Items/Cache. But I am talking about items that doen't have a Item image yet. So I can add a image to a item.

Thanks in advance!
Best regards.
Santana
Last edit: 9 years 1 month ago by Santana Moll. Reason: language error

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #146739 by Krikor Boghossian
Replied by Krikor Boghossian on topic Set K2 Itemimage in database
Hello Santana,

The image is not stored in the database. K2 looks for an image which matches its criteria and shows it.

But I am talking about items thgat doen't have a Item image yet.


If you are trying to show a placeholder you can assign one in your template overrides you can read this post: www.joomlaworks.net/forum/k2-en/41394-default-image-for-k2-item#146171

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Santana Moll
  • Santana Moll's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago - 9 years 1 month ago #146741 by Santana Moll
Replied by Santana Moll on topic Set K2 Itemimage in database
Hi Krikor,

So I would like to know how to set the criteria for a image to show up on a specific K2 item. Is it by putting the matching imagesize in the name, in my case XL?

I am sorry for the hassle, but the insights will be helpfull!

Thansk,
Santana
Last edit: 9 years 1 month ago by Santana Moll. Reason: eureka moment

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

  • Santana Moll
  • Santana Moll's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago #146742 by Santana Moll
Replied by Santana Moll on topic Set K2 Itemimage in database
Hi Krikor,

I tried putting images in the media/k2/items/cache/ folder ending with _Generic _S _XS _M _L and _XL but with no result, so I am still wondering what those criteria are K2 looks for to show an itemimage.

Hope you can claerify this,

Thanks in advance,
Santana

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #146759 by Krikor Boghossian
Replied by Krikor Boghossian on topic Set K2 Itemimage in database
Hello there,

This is how the image's name is being generated: md5("Image".$row->id);

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Santana Moll
  • Santana Moll's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago #146779 by Santana Moll
Replied by Santana Moll on topic Set K2 Itemimage in database
Thanks Krikor, I will have a look a that.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #146797 by Krikor Boghossian
Replied by Krikor Boghossian on topic Set K2 Itemimage in database
You 're welcome Santanta.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum