Forums › Forums › Search & Filter Pro › Customize initial results
- This topic has 6 replies, 2 voices, and was last updated 7 years, 7 months ago by Anonymous.
Viewing 7 posts - 1 through 7 (of 7 total)
-
Anonymous(Private) April 19, 2017 at 3:00 am #103680
Is there a way to display different information when the page first loads and only show results once the user makes some choices from the filters? I have two taxonomy dropdowns which allow the user to choose an industry and a specialty. I would like to show a message in the results area OR placeholder/anonymous results until the user makes a choice.
Thanks for your help.
Trevor(Private) April 19, 2017 at 9:26 am #103704If you have access to the PHP template files, you can use something like this (change the ID for your form ID):
global $searchandfilter; $sf_current_query = $searchandfilter->get(1234)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { // your holding template code here } else { // your normal template code here }
-
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)