Keyword

[SOLVED] K2 component does not display image on the link in the categ

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 week ago #143415 by Corn26
Hello friends!
K2 component does not display the image from the links in the categories(
How to make so that the component K2 took the first image with the news and showed it in the list of categories?
Image from the link...
Sorry, I use online translator....

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 week ago #143441 by Corn26
It's really done or not??

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week ago #143454 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
You need to override the links template.
You can find more about overrides here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Then you need to make sure that this code exists in your override.
	  <?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
	  <!-- Item Image -->
	  <div class="catItemImageBlock">
		  <span class="catItemImage">
		    <a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
		    	<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;" />
		    </a>
		  </span>
		  <div class="clr"></div>
	  </div>
	  <?php endif; ?>

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 week ago #143479 by Corn26
Hello, this code exists in each sub-template, it remains unchanged.
In the list of categories of time will be displayed articles with images loaded via the tab "Images". A picture inserted on the link in the article are not displayed
Images downloaded from the tab "Images" are displayed.
Images are inserted on the link are not shown.
Online translator is very bad translation, sorry ...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week ago #143506 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
If the code exists in the links template then make sure that the category's settings have an image set for links.

If the category is inheriting its settings from another category, you need to change the 'master' category's settings.

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 week ago #143517 by Corn26
In these settings?
http://i.imgur.com/QCHl1Uk.jpg?1

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 week ago #143546 by Corn26
Please help me with my question. I myself would not be able to solve this problem ...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week ago #143564 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
I meant the Category item layout options.
Also check the menu item' settings if the menu item is pointing towards multiple K2 categories.

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 week ago #143601 by Corn26
Checked the layout, everything in the "Show"...
please Make a screenshot of the correct settings.
Thank you!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week ago #143615 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
Here you go: imgur.com/s2q3zXw

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 week ago #143625 by Corn26
Sorry...
images uploaded through the link, not shown...
I did as you indicated on the screenshot, but it didn't work.
The images are displayed only via download Manager. If you insert a link to an image, it is not shown...
http://imgur.com/IHyIo0W

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 days ago #143644 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
You need to upload these images through K2's image tabs or else they will be stripped.

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 days ago #143695 by Corn26
I need something to take k2 component images from the body and the article appears in the list of categories.
I do not want to upload images through the Image Manager tab ...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 days ago #143699 by Krikor Boghossian

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 days ago #143702 by Corn26
This plyugin does not fit ...
I need to display images of the articles (<img src="www.site.com/upload/medialibrary/75c/75c47d48bc1582cda0256c06412ac9ac.png" border="0" width="1024" height="501">) in the category list (category_item.php)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 day ago #143732 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
Then upload your image through the image tab.
There is no other solution than to use K2's images,

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 day ago #143761 by Corn26
Module Raxo AllMode K2 shows type image (<img src="www.site.com/upload/medialibrary/75c/75c47d48bc1582cda0256c06412ac9ac.png" border="0" width="1024" height="501">) in this module you have the option of choosing which type of images to show... When in K2 appears this option?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 14 hours ago #143766 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
In the category's settings. Check my previous posts.

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
9 years 11 months ago #143894 by Corn26
I did everything as you said but no results.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #143909 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 component does not display image on the link in the categ
Did you setup the plugin correctly? Is it enabled?

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


Powered by Kunena Forum