ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Building a filterbox without dropdowns.

February 19, 2012 7:04pm

Subscribe [3]
  • #1 / Feb 19, 2012 7:04pm

    Ger

    5 posts

    I have been looking and researching for the past week and can’t find anything similar to what I’m trying to achieve. I’m building a real estate site and the client is adamant about wanting a search results filter box that has checkbox fields instead of dropdowns, and doesn’t require a page reload. The variables wouldn’t be dependent of each other and could be searched in any combination.

    I’ve contacted the people at Planet-ee about their search results 1.3 plugin but they confirmed they would have to make a custom build. I know the page embed refresh would have to be done with AJAX. I was trying to pass the filter variable results through the URL, but am unsure how to have different form fields work together to build on URL.

    Surely I’m not the only one who has tried this?

  • #2 / Feb 19, 2012 9:18pm

    John St-Amand

    865 posts

    Your search criteria based on categories, custom fields or a combination of both?  I don’t have an answer for you, but I suspect that question will get asked by whoever does, so I thought I’d ask to get the ball rolling. 😊

  • #3 / Feb 19, 2012 9:23pm

    Ger

    5 posts

    Good question. The way I have it set up now is filtering by channel fields, but whatever way is the best will work for me. I have all the channel fields set logically, and would like that whoever is putting in home listings wouldn’t have to duplicate fields just for sorting.

  • #4 / Feb 19, 2012 9:31pm

    Bhashkar Yadav

    727 posts

    Hi Ger,

    you can use Ajax POST and use URL as same template or other template which would substitute the search results.

    the check box checked values get posted over the template page and {exp:super_search_results} will do rest of the things based on post values.

    while ajax post, make sure the POST data also contain the first search criteria so that filtering is being done on search results.

    I hope, this would help you. please share your further findings.


    Best Regards,
    Bhashkar

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases