5 Posts
Mick81
5 years ago
3
Topic

Hi all,

I'm using the search query plugin field and it's working great. If I use the ORDER BY command inside the query it works. But if I use a search ordering field to

allow the users to select the order, it's not working. I followed all the steps of this guide: https://www.seblod.com/resources/tutorials/using-the-search-query-field-plugin

Someone has some suggestions?

Many thanks

Michele

Get a Book for SEBLOD
4229 Posts
Kadministrator
5 years ago
2
Level 1

For the start you should enable debugging in the search type so you will see the query that is produced, than it shoudl be more clear to you what part is not working.

5 Posts
Mick81
5 years ago
1
Level 2

Thanks Klas,

I enabled debugging but I can't see the ORDER BY command. The debug show only the query written inside the search query field. It is like if i'm using the search query field, I can only use the ORDER BY command inside the query field. Seems that I can't use the dinamic or static ordering of seblod. Do you know if there is an incompatibility betwen the search query field and the ordering options of seblod?

I also tried to use the ordering tab and make a descending static ordering on a field but it doesn't work. Of course before I have enabled the default order in the configuration tab. Also in this case I can't see the order by commad on the debug.

4229 Posts
Kadministrator
5 years ago
0
Level 3

Query form search query replaces the query produced by the Seblod and that includes order statements, you need to make it by yourself using variables from the URL, please see the following tutorial for examples how t use variables in the Search query

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

Get a VIP membership