Keyword

Displaying the first few items from a subcategory in category view?

  • Johan Nobel
  • Johan Nobel's Avatar Topic Author
  • Offline
  • New Member
More
14 years 8 months ago #72911 by Johan Nobel
Hi, this might be an unusual question, but I need this for a site I'm working on and I'm trying to figure out if this is possible in K2

The situation is as follows:
In a category view I have 6 subcategories. I've overridden the template so that each category shows just the titel and the category image.
Underneath each of those categories I'd like to show the 4 latest articles in that category as links.
As fas as I can see the model provides the view with things like $subCategory->numOfItems, but there seems to be no $subCategory->Items array or something like that.

Can I override the model somehow to achieve that?
Thanks in advance for any advice.

Johan

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

More
14 years 2 months ago #72912 by juro
Hi Johan,

have you found a way to do this? I would be interested as well!

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


Powered by Kunena Forum