Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marcus 9 posts 99 karma points
    Jan 22, 2018 @ 08:42
    Marcus
    0

    Filter (faceted search) and sort nodes

    Hi,

    I have a vehicles showcase page and I would like to add a filter and the ability to sort results. What is the most preferable way of doing this in Umbraco 7? Is there a plugin that can help or any tutorials that can point me in the right direction? I've read a little about examine search but not sure if this is what I should use.

    Right now a vehicle has a specific document type (car, motorcycle, other) and they are all listed on a parent (In stock) page. I would like to be able to filter vehicles by choosing the type of vehicle in a dropdown list and update the view to show vehicles of corresponding document type.

    I also have certain properties that I would like to add to the filter. E.g. transmission (Automatic, Manual), Fuel (Petrol, Diesel) etc.

    The user should also be able to sort results alphabetically, by year and price.

    If someone could point me in the right direction I would be very greatful. I'm running Umbraco 7.7.3 if this helps.

    /Marcus

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 22, 2018 @ 09:32
    Ismail Mayat
    1

    Marcus,

    You need to do this with examine (https://our.umbraco.org/Documentation/Reference/Searching/Examine/).

    With regards to facets you can make use of the excellent bobo facets package https://our.umbraco.org/projects/developer-tools/umbraco-bobo-facets/ it will require some coding.

    Regards

    Ismail

  • Marcus 9 posts 99 karma points
    Mar 05, 2018 @ 12:06
    Marcus
    0

    Hi Ismail,

    Sorry for the late reply (been hospitalized) and thank you for your suggestions.

    I tested the Bobo Facets Package this weekend on a Umbraco 7.7.3 installation with the default starter kit. I got it working (kind of) following their example project (DesignAgency.BoboFacets.Example).

    I have a couple of questions though that maybe you could help me with.

    1. In their example when visiting the products page, only 1 product is listed until you choose a value from the available filters (se pictures). Can you change so all products is listed by default?

    enter image description here enter image description here

    1. Is it possible to build the query to handle multiple facets by using checkboxes instead (se picture)? So the query string becomes like for example: products/?fsize=L&fsize=XL&fcolor=Black&fcolor=Red

    enter image description here

    Thanks in advance!

    /Marcus

    PS. I started a new topic with these questions on the projects forum.

    https://our.umbraco.org/projects/developer-tools/umbraco-bobo-facets/umbraco-bobo-facets-feedback/

Please Sign in or register to post replies

Write your reply to:

Draft