Keyword

k2 Item image default

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
3 months 1 minute ago #172415 by Fotis
Fotis replied the topic: k2 Item image default
First off, the image you reference is wrong - " www.flyingdads.gr/demo/images/Featured_articles/logo_panaxaikis_gia_site.png " throws a 404 error.

Secondly, you need to make sure the format is correct - see how it's entered: jmp.sh/21xSJNU

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Makis Christopoulos
  • Makis Christopoulos's Avatar Topic Author
  • Offline
  • New Member
More
2 months 4 weeks ago #172416 by Makis Christopoulos
Makis Christopoulos replied the topic: k2 Item image default

Fotis wrote: First off, the image you reference is wrong - " www.flyingdads.gr/demo/images/Featured_articles/logo_panaxaikis_gia_site.png " throws a 404 error.

Secondly, you need to make sure the format is correct - see how it's entered: jmp.sh/21xSJNU


Fotis ,
i have fix the wrong image path , and also the format. Now it works like a charm.
Thank you !!!

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 months 4 weeks ago #172417 by Fotis
Fotis replied the topic: k2 Item image default
Great :)

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Makis Christopoulos
  • Makis Christopoulos's Avatar Topic Author
  • Offline
  • New Member
More
2 months 4 days ago #172550 by Makis Christopoulos
Makis Christopoulos replied the topic: k2 Item image default
I have one more question ... How do I define a different default mage in a different category, so when there is no photo in an item getting the default from the category? How can it be?

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #172596 by Fotis
Fotis replied the topic: k2 Item image default
You should be able to grab the category ID or name using $this->item->category->id or $this->item->category->name respectively, so get that, check the ID or name (whichever you want to use as differentiator) and then make an if/else statement to load a different default image.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Makis Christopoulos
  • Makis Christopoulos's Avatar Topic Author
  • Offline
  • New Member
More
1 month 3 weeks ago #172631 by Makis Christopoulos
Makis Christopoulos replied the topic: k2 Item image default

Fotis wrote: You should be able to grab the category ID or name using $this->item->category->id or $this->item->category->name respectively, so get that, check the ID or name (whichever you want to use as differentiator) and then make an if/else statement to load a different default image.


Hello Fotis and Thank you for your help.
Can you syntax an example please.... Because I am newbie in this?

Thank you very much!!

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #172637 by Fotis
Fotis replied the topic: k2 Item image default
I've given you direction.

If you're going beyond "point & click" tasks in Joomla, you'll need to grasp the basics of PHP.

Providing constant code examples is out of the scope of the support offered here.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Makis Christopoulos
  • Makis Christopoulos's Avatar Topic Author
  • Offline
  • New Member
More
1 month 3 weeks ago #172643 by Makis Christopoulos
Makis Christopoulos replied the topic: k2 Item image default
Ok. I understand!!
Thanks

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

  • Makis Christopoulos
  • Makis Christopoulos's Avatar Topic Author
  • Offline
  • New Member
More
1 month 3 weeks ago #172676 by Makis Christopoulos
Makis Christopoulos replied the topic: k2 Item image default
Ok
I fix it!!

Thank you!!

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #172679 by Fotis
Fotis replied the topic: k2 Item image default
Great :)

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum