- Posts: 4
COMMUNITY FORUM
Images in "more in this category"
- Wiciu87
-
Topic Author
- Offline
- New Member
Less
More
11 years 1 week ago #128367
by Wiciu87
Images in "more in this category" was created by Wiciu87
Is it possible to modify item view to show images of "More in this category" part of the item instead of their titles or in addition to them? It would transform the category in sort of image gallery. I'd be glad if someone could help me with that
Cheers
Cheers
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 week ago - 11 years 1 week ago #128368
by Lefteris
Replied by Lefteris on topic Re: Images in "more in this category"
Hi. The images are already there. Try :
<img src="<?php echo $this->item->previousImageMedium; ?>" alt="blabla" />
Please Log in or Create an account to join the conversation.
- Wiciu87
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
11 years 1 week ago #128369
by Wiciu87
Replied by Wiciu87 on topic Re: Images in "more in this category"
Where exactly should I put it ? I've tried templates/default/item.php but it doesn't work
link to the mentioned site bcp.xcl.pl/portfolio/14-psy
link to the mentioned site bcp.xcl.pl/portfolio/14-psy
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 week ago #128370
by Lefteris
Replied by Lefteris on topic Re: Images in "more in this category"
I cannot know what overrides you have in your site. This is something you have to find out. Read getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates to learn how K2 templates work. Then it should be easier for you to locate the correct file. Let me know when you have any progress on this. Note that this assumes that you are using the latest version of K2.
Please Log in or Create an account to join the conversation.
- Wiciu87
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
11 years 1 week ago #128371
by Wiciu87
Replied by Wiciu87 on topic Re: Images in "more in this category"
Ok thx to the link I've managed to find the proper file to edit.
I've inserted the code but the src tag is somehow stripped leaving only the alt.
the effect can be seen on the link above
I've inserted the code but the src tag is somehow stripped leaving only the alt.
the effect can be seen on the link above
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 week ago #128372
by Lefteris
Replied by Lefteris on topic Re: Images in "more in this category"
I can see the src property and it looks normal. The image is loaded without issues.
Please Log in or Create an account to join the conversation.