3

Is it possible to show different search results ( on the basis of templates) in different tabs (one tab for one template like article/blog/documents) in same page for same keywords using SXA search components?

  • Have you considered using the tabs component, with a different search results component in each tab? Each search results component can have a different signature and scope. – Michael West Jan 5 '18 at 19:49
  • The tabs component providing the facility field to add tab heading with tab content in rich text format. – Amit Kumar Jan 6 '18 at 2:30
2

Yes. All you have to do is to put two Search Results renderings on each tab and configure search scope.

Use search scope to define which templates should appear on the particular tab.

Search scope – select a scope to limit the search results.

source

I wrote a blog post about configuring search for blog purposes recently. This section describe how to create Search Scope and assign it.

If you've got a search filters on a page they will modify both Search Results results unless you define search signature

Search results signature – enter the unique signature of a specific Search 
Results rendering to limit the search results. This can be convenient when you have more than one search result rendering on the page.

source

  • The SXA OOTB component not allowing to add search results component, it only allows to add rich text content. In this how can we add the Search results component in Tab? – Amit Kumar Jan 9 '18 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.