Is there a way to limit search results to show up from within a section? | The place for Zendesk users to come together and share
Skip to main content
Feb 3, 2021 11:56 AM UTC
Question

Is there a way to limit search results to show up from within a section?

The support page for my organization currently has 3 broad categories that a user can navigate through. For more clarity, please refer to the link below:

https://support.bluestacks.com/hc/

The page has 3 categories, based on the product a user is currently using. My concern is that if a user is navigating through one category, it would be great if his/her search results showed articles from within that category only, and not from the entire bunch of articles on the help center. Is there a way to make this possible on Zendesk?

P.S. I'm not too much into coding, so if there's a built-in feature that could make it happen, it would be pretty awesome!

14 replies

Jul 11, 2023 7:40 AM UTC

Hello @ifra,

Can we customize to restrict the search within the section to search content within that particular section instead of whole portal?

Translate
Ifra
Community Expert
Jul 14, 2023 5:52 PM UTC

@Abhishek,

yes, you can do this by checking the section ID like this:

 

{{#isnt section.id 00000}} You search-bar code is here {{/isnt}}

00000 - section ID for which you wanna hide search-bar

Translate
Thank You :)
Fernando29
Aug 31, 2023 6:59 PM UTC

@ifra Do you know how I can modify the amazing code you provided to hide the Type section and show the By Category section expanded by default?

Translate
Ifra
Community Expert
Sep 3, 2023 4:12 PM UTC

Hi Fernando Sir,

I know I'm too late to answer actually I was suffering from high fever and cold so I couldn't answer.

I have tried that but couldn't get it done.

Please see this article at once:

https://support.zendesk.com/hc/en-us/community/posts/5683688413338-Search-Results-select-Article-type-by-default

 

 

Thanks

 

Translate
Thank You :)