Streaming live at 10am (PST)

Conditional visibility in search results page

Hey team,

I’ve just started setting up a search results page for a project and was hoping someone could suggest a custom code hack to use conditional visibility within the search results list (much like you can on CMS lists).

For example: if a search result item is from a certain collection, do not include tags.

Alternatively, is there a way separate search results from different collections into separate search results lists? For example, one column displaying results from the blog and another column displaying results from product pages.

Any advice would be appreciated :slight_smile:

Thanks


Here is my public share link: https://preview.webflow.com/preview/goodbooks?utm_medium=preview_link&utm_source=designer&utm_content=goodbooks&preview=3644edefb77500ba3d4b54a2256c2fd7&pageId=5e661033af40021d9faa5770&mode=preview

1 Like

Also looking for a similar thing here and haven’t found anything so far. Any help hugely appreciated!

Cheers.

Same here!
Anyone? Anything? :face_with_monocle:

Same here!
Anyone? Anything? :face_with_monocle: [2]

It’s possible to write custom code to evaluate the text content of an element and take further action. The specifics depend on your unique requirements. Look at :contains() Selector | jQuery API Documentation for an example.

No. Webflow’s search is limited to a scope of all indexable items. You could look into third party search tools to potentially find a solution.