Loading...
 
Features / Usability

Features / Usability


limit search results

posts: 30

Is there a way to limit the search results to only a specific category.
So I have this search module, and when any user searchs on it only the pages... belonging to a certain category to be shown...
Thank you!

posts: 30
Serio Being wrote:

Is there a way to limit the search results to only a specific category.
So I have this search module, and when any user searchs on it only the pages... belonging to a certain category to be shown...
Thank you!


I understand that this can be done with the use of the custom search plugin, but I have a problem: The search is all good configured, but the results are shown on the same page. How can I make it so that when I submit the search, I will be redirected to another page with the results?

posts: 126885 United Kingdom
Serio Being wrote:
...How can I make it so that when I submit the search, I will be redirected to another page with the results?


Interesting idea, but i don't think there's any way of doing that at the moment, you can only direct the results to a div of your choice on the same page.

You could make the search form hide when the results arrive with a bit of javascript, which might look a bit similar. Something like this maybe (untested)?

Copy to clipboard
$(document).on("pageSearchReady", function() { $('#customsearch_0').hide(); });
posts: 30
Jonny Bradley wrote:

Interesting idea, but i don't think there's any way of doing that at the moment, you can only direct the results to a div of your choice on the same page.

You could make the search form hide when the results arrive with a bit of javascript, which might look a bit similar. Something like this maybe (untested)?

Copy to clipboard
$(document).on("pageSearchReady", function() { $('#customsearch_0').hide(); });

I understand but that doesn't quite help in what I am trying to archieve... is there any other way how I can limit the search to only wiki pages, or only blog posts? Becuase right now it shows all and I want to limit it to only my preferred type of object...


Upcoming Events

1)  21 Mar 2024 18:00 GMT-0000
Tiki Roundtable Meeting
2)  25 Mar 2024 17:00 GMT-0000
29th anniversary WikiBirthday (With Ward Cunningham)
3)  18 Apr 2024 18:00 GMT-0000
Tiki Roundtable Meeting
4)  16 May 2024 18:00 GMT-0000
Tiki Roundtable Meeting
5)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9) 
Tiki birthday
10)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting