I am looking for a solution to the following problem:
I have created a custom search with the View-Block, where can the visitor filter my posts and projects.
Now it should be so that when the user clicks on Show results, he is redirected to a separate page to display the results.
But I can't find a way to configure this.
The custom search should also be displayed on the other side.
Welcome to Toolset support and I'd be happy to assist.
To achieve this, you can follow these steps:
1. The page where you've created the view, can be used to show the search results and the search form (let's call it Page A). You can easily change this page's title and the slug.
2. Next, you'll create a new page (let's call it Page B), where only the search form from the view will be shown, without any search results.
On this page, insert a "View" block and from the existing views, select the already created view.
From the view block's settings, choose "Only the search form" and also select the page on which you'd like to show the results which would be Page A.
( screenshot: hidden link )
As a result, when a visitor will use the search form inserted on Page B, the results will be shown on a separate Page A.
I hope this helps and please let me know if you need any further assistance around this.
Thank you for this quick solution, because I searched everywhere and couldn't get to this menu, where I could select the results page. And now I can do it this one, but I have another question:
What happens if I want to use the archive page as the results page (B) for the search instead of a page?
Page A = Search form
Page B = Archive Page (Posts)
I found a solution for my problem to submit the filter options to the archive site.
You must create a blank page with the same name as the slug (projects). This ensures that the URL of the (Projects) page and the Archive page (Projects) are the same and the configuration is then exactly as you have already described.
If you now click on Submit, you will be forwarded directly to the archive page. You don't see the created empty page (projects), because the empty page (projects) has the same url as the archive page. That is it, what I search for my website: hidden link and I have solved this problem for me.
#hidden link -> Submit -> #hidden link = empty Site (projects)-> Forwarding -> #hidden link = slug (projects archive)
This is a solution that you should perhaps include in your documentation, as there are certainly other people who want to display their results on the archive page right away!