Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a date field with just year - this is the year of publication. So it would be very good if I can use JQuery Slider in filters to choose years range, but it doesn't work now.
Comments
Comment #1
mikeker CreditAttribution: mikeker commentedI don't see adding slider options for date fields, though I do want to add them to numeric fields. So, if you were to store your year-dates as integers using sliders would be an option. But using sliders for date fields is too much of edge-case.
Sorry.
Comment #2
MPeli CreditAttribution: MPeli commentedHi,
I would appreciate sliders for date fields as well. It there a way on how to achieve it?
Thank you, Martin.
Comment #3
MPeli CreditAttribution: MPeli commentedComment #4
mikeker CreditAttribution: mikeker commentedUnless someone can show me a jQuery UI widget that does date fields as sliders, or a way to do Views' dates fields as integers, this will remain won't fix. Actually, it's more like "can't fix" since sliders work with integers and not date fields.
Feel free to reopen if you find a solution to either of the above.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedcould you convert a date to a unix timestamp and then use the jquery slider on it?