dev-master
9999999-devA date range field and filter for SilverStripe
BSD-3-Clause
1.0.0
1.0.0.0A date range field and filter for SilverStripe
BSD-3-Clause
A date range field and filter for SilverStripe
A date range field for SilverStripe. Based heavily on dnadesign/silverstripe-datedropdownselectorfield but using SilverStripe's DateField., (*1)
Our primary use case for this module was for use in a ModelAdmin within the CMS - it hasn't been tested anywhere else so use with care., (*2)
Use composer:, (*3)
composer require 'deptinternalaffairsnz/silverstripe-date-range-field' '1.0.0'
When configuring searchable_fields
for a DataObject
you can make use of the DateRangeField
and DateRangeFilter
like so:, (*4)
private static $searchable_fields = array( 'Created' => array( 'title' => 'created date', 'field' => 'DeptInternalAffairsNZ\SilverStripe\DateRangeField', 'filter' => 'DeptInternalAffairsNZ\SilverStripe\DateRangeFilter' ) );
A date range field and filter for SilverStripe
BSD-3-Clause
A date range field and filter for SilverStripe
BSD-3-Clause