Keyword

Images in "more in this category"

  • Wiciu87
  • Wiciu87's Avatar Topic Author
  • Offline
  • New Member
More
10 years 4 months 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

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

More
10 years 4 months ago - 10 years 4 months 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" />

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

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

  • Wiciu87
  • Wiciu87's Avatar Topic Author
  • Offline
  • New Member
More
10 years 4 months 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

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

More
10 years 4 months 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.

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

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

  • Wiciu87
  • Wiciu87's Avatar Topic Author
  • Offline
  • New Member
More
10 years 4 months 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

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

More
10 years 4 months 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.

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