51 Posts
morhinio
6 years ago
4
Topic

Hello,

I have several categories (4) with different items.

Now I have created a list & search form and want to set the ordering as follow:

  1. First show all items from the category one with the article ordering from the backend.
  2. Second show all items from the category two with the article ordering from the backend.
  3. And so on.

Is that possible? I could not found this option.

Get a VIP membership
4229 Posts
Kadministrator
6 years ago
2
Level 1

What you are looking for is not ordering but grouping by category, I don't think this is available by default but if I recall correctly someone developed a template for that, try searching this forums for solution

51 Posts
morhinio
6 years ago
1
Level 2

Hello Klas,

I can't find a solution (template) in the forum.

Do you have a tip for me, which search term I should use?

1283 Posts
Bucklash
6 years ago
0
Level 3

Hi

Have you looked at Search Query

You can append the Seblod search query or override it with your own....

Sounds like you want to use 'Group By'

51 Posts
morhinio
6 years ago
0
Level 1

I have bought the field search query. I have read the following tutorial:

https://www.seblod.com/resources/tutorials/using-the-search-query-field-plugin

But my first problem is, that I have no field for the live value.

My test query looks so:

SELECT a.*, b.*
FROM #__content as a
INNER JOIN #__cck_store_form_demo AS b ON a.id = b.id
INNER JOIN #__categories AS c ON a.catid = c.id
ORDER BY c.lft, a.ordering

But I get no results if I add the search query field to the search form.

Get a VIP membership