Forums Forums Search & Filter Pro Search and filter issues

Viewing 7 posts - 11 through 17 (of 17 total)
  • Anonymous
    #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
    #97487

    In the form setup, Display Results Method, change this to VC Grid (it is set at shortcode right now).

    Anonymous
    #97494

    Again thanks, that was it.
    One last question, is it possible to show the empty form (without showing all the results as it does now before making the selection and hitting search?
    Thanks

    Trevor
    #97498

    This 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.

    Anonymous
    #97510

    No, as you mention it does not seem to work, no big deal the form works fine also this way.
    Thanks a lot for your superb support!!

    Trevor
    #97514

    I can close this thread then?

    Anonymous
    #97532

    sure you can close it. Thanks a lot!

Viewing 7 posts - 11 through 17 (of 17 total)