Keyword

Item view: "More in this category" customization

  • afdrock
  • afdrock's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago - 12 years 11 months ago #56854 by afdrock
Hi,

First, K2 is really awesome!

When I'm in a item view page, after my item content, I have the options to display
"Latest items from author" and "More in this category".

The problem is that I need to show more items from the same category, but in the same way as is displayed at "Latest items from author", I mean, displaying like 5 items from the same category, not from the same author.
Is there a way to do that?

I'm not good with php yet, but maybe trying to adapt the function "<!-- Latest items from author -->" in the file
"/com_k2/templates/default/item.php" to show category items instead of author's items.

Anyone can help?

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

More
12 years 11 months ago #56855 by Simon Wells
Hi,
More in this Category is produced using the following code:
Log in  or Create an account to join the conversation.

  • afdrock
  • afdrock's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #56856 by afdrock
Thanks a lot, Simon!

Because I'm in hurry, I will use the mod_k2_content alternative.
I created some of these module, one for each category.
The modules are positioned at the footer, and each module is displayed only in his correspondent category by Menu Selection.

When I get some time I will try to override the item.php file, mixing the codes that you've mentioned.

Thanks again!

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

More
12 years 11 months ago #56857 by troponin
needed this too . Here is the solution.

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

More
12 years 10 months ago #56858 by joomlanew
Hi,
Thanks for suggesting an alternative solution.
However, for some reason, I can not use module in this case. Is it possible to modify item.php file in such a way that it shows, say, 10 images (5 previous and 5 next)? I have already modified it to show images in place of just the item titles. The modified piece of code that I have applied is this:
Log in  or Create an account to join the conversation.

More
12 years 9 months ago #56859 by Tuna
Trying to do something similar is next and previous images. Did you get this worked out?

thanks

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