- Posts: 14
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] K2 component does not display image on the link in the categ
[SOLVED] K2 component does not display image on the link in the categ
- Corn26
- Topic Author
- Offline
- New Member
Less
More
9 years 4 days ago #143415
by Corn26
K2 component does not display image on the link in the categ was created 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....
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
9 years 3 days ago #143441
by Corn26
Replied by Corn26 on topic K2 component does not display image on the link in the categ
It's really done or not??
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 3 days ago #143454
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
9 years 3 days ago #143479
by Corn26
Replied by Corn26 on topic K2 component does not display image on the link in the categ
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 ...
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 days ago #143506
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
9 years 2 days ago #143517
by Corn26
Replied by Corn26 on topic K2 component does not display image on the link in the categ
In these settings?
http://i.imgur.com/QCHl1Uk.jpg?1
http://i.imgur.com/QCHl1Uk.jpg?1
Please Log in or Create an account to join the conversation.
- Corn26
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
9 years 12 hours ago #143546
by Corn26
Replied by Corn26 on topic K2 component does not display image on the link in the categ
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 11 months ago #143564
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
8 years 11 months ago #143601
by Corn26
Replied by Corn26 on topic K2 component does not display image on the link in the categ
Checked the layout, everything in the "Show"...
please Make a screenshot of the correct settings.
Thank you!
please Make a screenshot of the correct settings.
Thank you!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 11 months ago #143615
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] K2 component does not display image on the link in the categ