Navigation überspringen

[Gelöst] How to display search results in a different page

This support ticket is created vor 4 Jahren, 7 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Dieses Thema enthält 8 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Nigel vor 4 Jahren, 7 Monaten.

Assistiert von: Nigel.

Author
Artikel
#1689393

Tell us what you are trying to do?
Hello, im trying to create a search form for a real estate page, the search for should be on home page but the results need to show in a different page.
i have search this topic and just found old support but the options are not the same of what i see in my page.

#1689797

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Toolset Blocks doesn't include support for this yet. We are working hard on bringing parity to Blocks for features that were possible with the legacy Views product, and separating the search form and search results is one of them.

I don't have a specific estimate of when that will become available, but it will likely be a few months.

I'm adding this thread to the internal ticket as an indication of demand that will help prioritise the work.

#1689813

Ohh wow, is there a workaroud this? can i use the legacy plugin? is just for the front page for a real estate web

#1689833

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Screenshot 2020-07-07 at 10.53.21.png

Sure, you can do this with the legacy editor, although we are understandably not encouraging people to go down this route.

You don't need to change plugin.

Go to Toolset > Settings and under Editing Experience opt to display both the Blocks and Legacy UIs.

With Blocks you design a View in situ when editing a page (or template) using the block editor.

In the legacy version, you create a View (at Toolset > Views) and then insert it where you need it to appear, using shortcodes.

Although the interface is different, it should be fairly self-explanatory creating a View with the legacy editor if you already did it in Blocks, you can ask me for specifics if you get stuck. You can have something of a hybrid editing experience if when it comes to the output you use the Loop Wizard, add, say the post title to have some field included in the output and choose to group the output fields in a content template. You will then see you have the option to edit that template with the Block editor, so you can design not the whole View itself, but each loop item with blocks.

Then to the question of splitting the View itself.

Pre-Gutenberg you would have been using the normal TinyMCE editor on posts and pages, which had a "Fields and Views" button for inserting the shortcodes to output fields or, in this case, your View. It would ask whether you wanted to insert the whole View, just the search form, or just the results, and in that way you could add the search form to one page and the results on another.

I expect you are not using the classic editor but are using the block editor for your pages. To have that same "Fields and Views" button available, you'll need to insert a Classic editor block, where you'll see the Fields and Views button behind a Toolset icon (see screenshot).

You'll find your View at the bottom, and you'll see the options about whether to insert the whole View or just part of it then. I suggest you go to the results page first and insert the View results, then go to your homepage and insert the search form (where you'll be able to specify the page which contains the results).

Note that you'll need to recreate your View, if you try to insert the View you created using Blocks this way some of the formatting of the output will be lost.

Let me know how you get on.

#1689897

My issue is resolved now. Thank you!

#1689989

My friend, another question. somehow im missing in the block editor the handles to move and position the blocks, im trying to style the search form to put the search fields inside a container but there are not there. im using the latest wordpress WordPress 5.4.2 running OceanWP theme in spanish on a local server. is there something im missing?

#1691291

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Screenshot 2020-07-08 at 10.15.55.png

In the screenshot you can see that in the View Search section I've added a Container block (which is empty, waiting for blocks to be added), and I have inserted a Search Filter (for a Priority taxonomy), which when highlighted has the grab handles available and which you can then drag and drop into the Container block.

If you are seeing something different, could you please open a new ticket to report it, we have a policy of one issue per thread to help keep the forum organised and for tracking issues, and the original issue is resolved.

#1691335
02.jpg
01.jpg

I found that if you enable the "top toolbar" option the handles dissapear as you can see in the screenshots. thank you very much for your help.

#1691367

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

But that's down to the Gutenberg editor itself, nothing to do with Toolset.

If you use the same setting on a blank page and add a normal paragraph block you'll find that those same grab handles are missing.

It's not a very helpful setting the way they have implemented it, I suggest you don't use it.

Thanks for bringing it to my attention, though.