Problem/Motivation
This module does not work with date fields (i.e. unix timestamps(!)). D8 has dropped the support for such date fields, but Smart Date has introduced them back for performance reasons. On the other hand, Smart Date provides many advantages over the core date fields and contributed modules, like date range, date all day, recurring dates, in one Smart Date field.
Steps to reproduce
- add a Smart Date field to your content
- add content with smart date values
- add a view for this content and add the smart date field (start) as a contextual filter
- save the view
- configure the date range to use this smart date field at admin/config/content/contextual-range-filter
- go back to your view and test the date range filter
You will see that the generated sql is generated for a default date field, not for a unix timestamp.
Comments
Comment #2
benjarlett commentedI need this too.. darn.
Comment #3
chrisckJust reporting here that contextual_range_filter does work with Smart Date range field type. Make sure your contextual filters are enabled at
/admin/config/content/contextual-range-filterConfigure your smart date range field contextual filter as follows:
When the filter value is NOT available
For lower limit range only:
Hope this helps someone.