Keyword

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
9 years 4 days 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
9 years 3 days 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
9 years 3 days 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; ?>

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

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
9 years 3 days 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
9 years 2 days 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.

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

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
9 years 2 days 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
9 years 12 hours 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
8 years 11 months 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.

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

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

  • Corn26
  • Corn26's Avatar Topic Author
  • Offline
  • New Member
More
8 years 11 months 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
8 years 11 months 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

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