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.

How to set up a website with different filtering possibilities

April 05, 2012 7:48am

Subscribe [3]
  • #1 / Apr 05, 2012 7:48am

    knipoog

    3 posts

    Hi,

    I am working on a proposal for a website that rents houses.
    The site shows an overview of houses. These list of houses must be filtered. For instance a visitor selects a zipcode and the amount of rooms. Then the results must be filtered for these two. There are 10 filtering options for the houses.

    How can I do this within Expression Engine?

    Thank you for your reaction,

    Mirjam

  • #2 / Apr 06, 2012 11:30am

    Robin Sowell

    13255 posts

    There are a couple of ways to approach this- though none that are completely ‘out of the box’.

    1. Use categories- a different category group for each of your filter options.  (I’d probably go with this approach).

    2. Use custom fields- I’m sure it could be done, but it’s not my preference, so I won’t get into it.

    3. You MIGHT be able to use a 3rd party add-on (Super Search or Tagger might work[/url].

    In either 1/2- the tricky bit is you’ll need to sort of customize the urls to pass the filter information in.  (You could do it via post, but that’s much trickier.)  So with categories?  You’d construct your urls like template_group/template/Cats-1-5-6 or something- and need to break out the Cats-x segment yourself.  Then you’d just need to put the category parameter of the channel entry tag.  So if you put 1&5&6 in the parameter?  It would pull back only entries that are in ALL of those categories.

    So- very doable.  It’s just a matter of setting things up so you can get all of your category info into the url and pull it back out again in a form usable as a parameter.

    Like I say- a variety of ways to approach it- but I’ve done it via categories, so that’s what I prefer.

    I’m going to shift this over to the ‘Community Help’ forum, as it’s not so much a technical issue as one that could use some ‘how to’ brainstorming.  I suspect the approaches above are but a limited sample of how others may have approached it.

  • #3 / Apr 06, 2012 12:54pm

    the3mus1can

    426 posts

    It would also recommend Geofinder (http://natural-logic.com/software/geofinder) for location based searching.

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

ExpressionEngine News!

#eecms, #events, #releases