volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

PageSearch with empty SearchQuery, how?

Hi. I've put together a search function for searching a certain type of page types. It all works well but displays 0 results if SearchQuery is empty. Since it's a quite advanced search I don't want to force the users to use the SearchQuery if they have selected a bunch of other criterias to filter on. Any ideas how to get search results using PageSearch with an empty SearchQuery?
#13340
Jan 29, 2008 17:18
Solved it... If the searchquery input is empty I instead retrieve all pages and set the collection as datasource for PageSearch. Not really a nice solution but it works :-)
#15620
Jan 29, 2008 17:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.