Keyword

Category View group items per letter a-z

  • Wouter
  • Wouter's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago #112237 by Wouter
I am trying to display the items within a category in the following order and I can't find a proper solution. Let's say I have these items in a category: apple, anchor, beat, cover, classmate, curtain... I need to display them like this:

A
apple
anchor

B
beat

C
cover
classmate
curtain

Could you help me out on thisone?

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

  • Wouter
  • Wouter's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago #112238 by Wouter
Anyone?

I need this for a project!

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

More
11 years 5 months ago #112239 by RC Cola
Replied by RC Cola on topic Re: Category View group items per letter a-z
I've been doing some research into this kind of thing also (sort by category) and it looks like you'd have to modify some k2 core files. Specifically it looks like the com_k2/models/itemlist.php file that builds the SQL query.

I was originally hoping that there would be a way to override the models similar to the templates, but its looking less and less likely to be able to do that.

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


Powered by Kunena Forum