mativs / fisotope

Facet search for metafizzy's Isotope
25 stars 4 forks source link

single selection from a facet #3

Closed ebillias closed 10 years ago

ebillias commented 11 years ago

Hi, first of thank you for such an awesome extension! I have been trying to work out for ages how to do this by myself with isotope, you saved me a lot of hours! I've got my first 2 filters using the OR and the 3rd is using the AND, now I have a fourth facet and I need a different operator.

I was just wondering if it was possible to configure a facet to allow only a single selection - so it would function in a similar way to a standard dropdown.

in context, I have a list of Locations and I only want the user to be able to select one at a time, the unselected locations are available to replace the current selection

hope this makes sense

you know, it would even work if I could just use the standard isotope filter on that particular facet, can I do that already?

one more question, is it possible to integrate a slider control? Example Bedrooms: values = 1,2,3,4,5,6, can I use a slider to select a range of values?

mativs commented 11 years ago

Hey, thank you!!

What do you think about this; instead of a toggle link that toggle a filter I can add a select link that select that category and disable all the others categories for that facet?

ebillias commented 11 years ago

Hi, I think that would work - I actually reverted back to using Isotope directly and have filters working the way I want them, I have yet to work on including a range slider in that - this site has an example of a price slider: http://www.porterdavis.com.au/Our-houses/Home-Finder

I can also give you a link to my dev site via email

Elle

nymshifter commented 11 years ago

Matias,

It really is an amazing wrapper for a super plugin. Thank you so much for the time and effort!

While I'm happy Elle worked out a solution for her project, I think having a 'single' kind of operator built in to Fisotope would still be very handy. Especially if it would work with the hashed URLs, etc. Just wanted to put in my vote!

Your suggestion above seems solid and flexible enough. Any chance you can add that functionality to the master repository? I have a project that would benefit greatly from the feature.

Regardless, thanks again!

mativs commented 11 years ago

Yes I will add that functionality. I don't know when I will do it, maybe next weekend I can give it some time.

ebillias commented 11 years ago

I'd definitely try it again if I could use a slider as well :)

Elle

On 30 September 2013 22:14, Matias Saguir notifications@github.com wrote:

Yes I will add that functionality. I don't know when I will do it, maybe next weekend I can give it some time.

— Reply to this email directly or view it on GitHubhttps://github.com/mativs/fisotope/issues/3#issuecomment-25356964 .

nymshifter commented 11 years ago

Matias,

Awesome! I appreciate your attempt to work that feature into the codebase at your convenience. I'd love it and think others would benefit from it as well.

I'm happy to help beta test it in whatever capacity I can. Can't wait to see what you cook up.

Cheers!

mativs commented 10 years ago

I take my time but I've finally push the new code.

I make it simpler. I've add a new operator, like and or or now you have unique with that operator the facet selection is always one.

Le me know what you think and if you can test it, it would be great!!