By tomer621 on
Hi,
Any one know what's the easiest way to add a range selector (sildebar), that i can ask the users what are the price range you are looking for.
I thought this could be done with a cck filed module, but it seems it cant ;-(
thanks,
Tomer
(not really sure this is the right forum, but could find a better one)
Comments
Just create two int/text
Just create two int/text fields that will serve as FROM and TO and also another two hidden fields that will serve as MIN and MAX.
Hook the form and add a div that will serve as slider(or add it into the form itself if you are using your own).
Load jQ UI Slider via drupal_add_library('system', 'ui.slider');
And include some javascript like:
And this should be in Module development not in Theme development section.
Thanks!
Although I must say that when i see such code I sort of turn green.
It's on my to learn list, once i finish mastering the "simple" use of drupal. btw, do you have any links to good leaning sources?
thanks again, for now i'll implement the fields you suggested,
Tomer