2017 © Pedro Peláez
 

silverstripe-module silverstripe-date-range-field

A date range field and filter for SilverStripe

image

deptinternalaffairsnz/silverstripe-date-range-field

A date range field and filter for SilverStripe

  • Thursday, September 10, 2015
  • by guttmann
  • Repository
  • 8 Watchers
  • 3 Stars
  • 653 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

SilverStripe date range field

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)

Installation

Use composer:, (*3)

composer require 'deptinternalaffairsnz/silverstripe-date-range-field' '1.0.0'

Usage

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'
    )
);

The Versions

10/09 2015

dev-master

9999999-dev

A date range field and filter for SilverStripe

  Sources   Download

BSD-3-Clause

10/09 2015

1.0.0

1.0.0.0

A date range field and filter for SilverStripe

  Sources   Download

BSD-3-Clause