Forums Forums Search & Filter Pro Refreshing Results when search criteria changes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #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-bio

    Displays tags and categories
    https://www.techcoastangels.com/?sfid=5254&sf_action=get_data&sf_data=all&_sft_post_tag=mission-bio&_sft_category=angel-investing

    Please let me know if I need to clarify

    Thanks!
    Phil

    Trevor
    #91304

    Ah, 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
    #91306

    I 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.
    Phil

    Trevor
    #91369

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

    Anonymous
    #91547

    How would you reset the category to all categories? It appears that I could send an AJAX request but can you confirm.

    Thanks,
    Phil

    Trevor
    #91551

    In the radio, there is an All categories radio? If so, inspect it a see what value it has. Then use javascript (not ajax) to change it. Stackexchange will have code examples, google something like:

    stackexchange jquery set radio button value

Viewing 6 posts - 1 through 6 (of 6 total)