Forums › Forums › Search & Filter Pro › Search and filter issues
- This topic has 16 replies, 3 voices, and was last updated 7 years, 8 months ago by Anonymous.
-
Anonymous(Private) March 17, 2017 at 12:16 pm #97485
Thanks a lot for your helpful tips.
I succeded in fixing the post grid look.
But the search and filter form does not work, see the page http://demo.polimedia.net/federcasa/circolari/ if I make a selection and hit CERCA (search) nothing happens.
I don’t see any options in the VC search and filter addon, so I don’t know what to do.
Thanks for your repeated help.Trevor(Private) March 17, 2017 at 12:35 pm #97498This is not so easy, as it would the use of PHP around that grid, and I do not think VC can do that. This is how that is done in PHP:
You can show them nothing (or a custom message) using this type of PHP code (change the number 1234 for the ID number of your search form and change the line echo ‘<div>Nothing to see here folks!</div>’; for whatever you want before the filter is used instead of the results – or remove for nothing at all):
global $searchandfilter; $sf_current_query = $searchandfilter->get(1234)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { echo '<div>Nothing to see here folks!</div>'; } else { // your VC Grid here }
As I say, I am not sure how you can do that though.
-
AuthorPosts