Keyword

K2 image insertion via JCE is not recognised as image

  • Hassan Hassan
  • Hassan Hassan's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 10 hours ago #173476 by Hassan Hassan
Hassan Hassan created the topic: K2 image insertion via JCE is not recognised as image
I would like to raise the issue again as it seems there is always a problem when I insert image via jce as a k2 article image. if I use the built in k2 image inserting option then it would show the k2 article and the image icon is shown as per attached screenshot, while if I insert the same image via jce image insert button the k2 article does not recognise the image inserted and image icon is not shown. is this a bug or what exactly?
and how to get this done?
I have changed the detault upload folder to be the same between jce and k2 and still the same problem
Attachments:

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

  • Hassan Hassan
  • Hassan Hassan's Avatar Topic Author
  • Offline
  • New Member
More
1 week 6 days ago #173478 by Hassan Hassan
Hassan Hassan replied the topic: K2 image insertion via JCE is not recognised as image
K2 v2.9.0
Joomla 3.9.12
jce pro 2.6.38
these are the one tested and where im seeing the problem just in case you ask

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 6 days ago #173480 by Fotis
Fotis replied the topic: K2 image insertion via JCE is not recognised as image
The icon appears only when you use the K2 Item image tab. It's not meant to be used with images added in your content through a WYSIWYG editor like JCE.

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.

  • Hassan Hassan
  • Hassan Hassan's Avatar Topic Author
  • Offline
  • New Member
More
1 week 5 days ago #173512 by Hassan Hassan
Hassan Hassan replied the topic: K2 image insertion via JCE is not recognised as image
yes indeed I know but images inserted via jce still does not show up in category view at all
can i make it show up in category view? or at least let k2 see the first image in its article and show it in category view?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 5 days ago #173513 by Fotis
Fotis replied the topic: K2 image insertion via JCE is not recognised as image
Check if you're using a word limit for introtext. This would effectively kill any image being loaded there in category listings (in order to avoid any issues with breaking HTML tags).

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.

  • Hassan Hassan
  • Hassan Hassan's Avatar Topic Author
  • Offline
  • New Member
More
1 week 4 days ago #173524 by Hassan Hassan
Hassan Hassan replied the topic: K2 image insertion via JCE is not recognised as image
I dont think its the reason I opened the template file and here is the code causing this

<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
what can I substitute echo $this->item->image; with to make it look at both entries images via k2 tab and images via jce

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

  • Hassan Hassan
  • Hassan Hassan's Avatar Topic Author
  • Offline
  • New Member
More
1 week 3 days ago #173529 by Hassan Hassan
Hassan Hassan replied the topic: K2 image insertion via JCE is not recognised as image
guys any suggestion on how can I change echo $this->item->image; to show first image in article ??

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

  • Hassan Hassan
  • Hassan Hassan's Avatar Topic Author
  • Offline
  • New Member
More
1 week 3 days ago #173537 by Hassan Hassan
Hassan Hassan replied the topic: K2 image insertion via JCE is not recognised as image
anyone has a clue pls the file is identified and the code is echo $this->item->image;
but we need to substitute it with another code that will just show the first image in the article thats all. I just want to parse the first image and put its url thats all

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 3 days ago #173539 by Fotis
Fotis replied the topic: K2 image insertion via JCE is not recognised as image
You can't, directly. But you can install the plugin IAKI from github.com/getk2/k2-iaki which will do just that: extract the first image found in the text and assign it to the K2 image variable.

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.


Powered by Kunena Forum