- 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
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
- Posts: 14
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 14
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
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 14
http://i.imgur.com/QCHl1Uk.jpg?1
Please Log in or Create an account to join the conversation.
- Corn26
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 14
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
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Corn26
-
Topic Author
- Offline
- New Member
- Posts: 14
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
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Corn26
-
Topic Author
- Offline
- New Member
- Posts: 14
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
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Corn26
-
Topic Author
- Offline
- New Member
- Posts: 14
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
-
- Offline
- Platinum Member
- Posts: 15920
There is no other solution than to use K2's images,
Please Log in or Create an account to join the conversation.
- Corn26
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Corn26
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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