How can we achieve Date Range Picker facet?
We would like to recreate our press release listing page using Coveo Search. We require the .NET Date Range Picker kind of functionality so that visitor has the flexibility to select FROM and TO date from Calendar control. Due to this flexibility, the DateSlider is not a viable option.
I know there is no out of the box Coveo Component for this, but help on how to create our custom component will be greatly appreciated. How can we implement JS Component for Coveo for Sitcore?
We had an example of a date picker facet in our documentation and we decided to remove it this month since it was based on the Jetstream demo which we don't want to use anymore in our documentation. However, the page is available in older versions of the documentation. Here is the June 2015 version of the page: https://developers.coveo.com/display/SC201506/Adding+a+Date+Picker+Facet
Note that the code may be a bit outdated and may need adjustments:
- Every use of jQuery
$variable should be replaced by
Coveo.$to be compatible with Sitecore 8.0 Experience Editor.
- At step #6, you should not modify the
CoveoSearch.ascxfile but instead create a copy of it and modify your own copy (see Duplicating the Coveo Search Component).
Even if the documentation page is outdated, it should be enough to understand the concepts of creating new facet types in Coveo for Sitecore.