Skip Navigation

[Resolved] Creating a view w a search and then showing the view w/o the search

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 10 months ago.

Assisted by: Waqar.

Author
Posts
#2685467
search resutts appear again.jpg
Only search results.jpg

I did this several times a few years ago but I cannot repeat the trick any more ( either I am getting too old or something has changed..): I like to present the results of searches in a view w/o the search options showing up. I call these pages in my website by using the search criteria in the URL, e.g. : hidden link which shows the results for model number 11301 in the first view on the page and for model code 11301 in the second view. Works a treat!

I made a test page hidden link where I made a test view kmg object view (id 317515) incl. a search field.
Then I made another page hidden link in which I imported the kmg object view and selected the "Only the search results" option". But whether I select then "Edit copy" or Edit original" I either get the search field anyway on the page or an error message.

Any ideas what I do wrong/goes wrong??? Big thanks in advance, Rudolph

Is there any documentation that you are following? Nope

Is there a similar example that we can see? As per above

What is the link to your site? hidden link

#2685546

Hi,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot this, I'll need to see how this view and these pages are set up in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2685719

Thank you for sharing these details.

When the blocks-based views are involved, using them on multiple pages is slightly different than the classic editor views.

We have a detailed guide on the topic at:
https://toolset.com/lesson-placement/lesson-placements-1622935-1979405/

Here is an example of a use case, to understand this better:

1. Suppose, I've created a new page 'Page for view', and inserted a view block to create a new view 'Test View'. It includes the search form and the search results. As a result, the 'Test View' will become associated with the page 'Page for view'.

2. This instance of the view block where it was created, can't be made to show only the search form or the search results.

3. To show only the search form or the search results from this view (on the same page or a different one), I'll have to insert another view block and select the view created in Step 1, as the existing view.

4. This view block will show the options to choose whether 'the search form and results', 'search form only', or 'search results only'.

Important note: In this view block where I've used the view as an existing view, I will not use the options 'Edit Original' or 'Edit Copy'. Here I just need to insert the view as an existing view and its specific part (search form or search results).

5. To make changes to the original view, I'll go back to the page 'Page for view' and edit the view through the view block where it was created.

6. The 'Edit Original' option will be used when I want to change the association of the view to a different page and 'Edit Copy' will be used when I want to create an independent copy/duplicate of the original view.

I hope this explanation helps and let me know if you have any follow-up questions.

#2685968

Hi Waqar, thanks for the excellent explanation, I was not sure about the Edit copy/Edit original option, just ignoring it did the trick !

Kind regards

Rudolph