Forums › Forums › Search & Filter Pro › Refreshing Results when search criteria changes
- This topic has 5 replies, 2 voices, and was last updated 9 years, 1 month ago by
Trevor.
-
Anonymous(Private) February 19, 2017 at 9:19 pm #91294
Is it possible to modify the ajax call when selecting tags in a drop down to not retain the category results?
For e.g.
I have a search for tags in a drop down and radio buttons for categories. If have the radio for “all categories” selected and select a tag, I get the appropriate results. If I have a different selection for the category radio and select a tag I still get the results of the category and tags.I need to be able to only show posts for a tag without the category results.
Displays just tags:
https://www.techcoastangels.com/?sfid=5254&sf_action=get_data&sf_data=all&_sft_post_tag=mission-bioDisplays tags and categories
https://www.techcoastangels.com/?sfid=5254&sf_action=get_data&sf_data=all&_sft_post_tag=mission-bio&_sft_category=angel-investingPlease let me know if I need to clarify
Thanks!
PhilTrevor(Private) February 19, 2017 at 10:32 pm #91304Ah, I think I understand. But, you needs must be logical for a program to be able to interpret
Do you ALWAYS want to ignore Category IF one or more Tags is selected, and ONLY use Category if ALL tags is selected? That IS logic you could program/achieve. What you will not be able to do is look to see what was last selected and ignore previous selections, because there are no breadcrumbs for a program to look at to be able to compare from one set of filters to the next.
Anonymous(Private) February 19, 2017 at 10:53 pm #91306I see. Since I am trying to have the dropdown of tags to operate independently of the category radio buttons, would I then need two separate search pages?
The posts with the tags would never be a part of a category and any posts in a category may not get tagged.
Would adding a change event to the dropdown select that “GET”‘s the url for tags and all categories or vice versa a change event in the radio selection that “GET”‘s the category and all tags be possible?
Thanks for the support.
PhilTrevor(Private) February 20, 2017 at 8:53 am #91369mmm. What you could do is add javascript that detects onchange for these two fields. If a tags vale (other than the default of all tags) is selected, categories is set to All Categories, and vice versa. To me that would be easiest. The Auto count might not trigger in the plugin, but I do not think you would want that anyway. You might want to have a submit button instead of auto submit as well, if the javascript you make isn’t seen before the auto submit runs.
-
AuthorPosts