2017 © Pedro Peláez
 

silverstripe-module timedropdownfield

Time dropdown for SilverStripe CMS

image

silverstripe/timedropdownfield

Time dropdown for SilverStripe CMS

  • Monday, February 18, 2013
  • by chillu
  • Repository
  • 2 Watchers
  • 9 Stars
  • 5,369 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 9 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Time Dropdown Field

Allows to select certain time intervals from a dropdown as an alternative to direct input into a TimeField. Adheres to user preferences in time formats set through the TimeField API, which by extension supports user preferences through i18n::get_time_format()., (*1)

Usage

As an isolated field:, (*2)

:::php
$field = TimeDropdownField::create('MyTime', 'My Time Field');

As part of a DatetimeField (requires SilverStripe 3.1):, (*3)

:::php
$datetimeField = DatetimeField::create('MyDateTime', My Date and Time Field')
    ->setTimeField(TimeDropdownField::create('MyDateTime[time]'));

Configuration

  • interval: Spacing in minutes between options (Default: 60)

Note: Since the field extends TimeField, most configuration happens in there., (*4)

Maintainers

  • Ingo Schommer (@chillu)

Thanks to Air New Zealand for sponsoring and contributing to this module!, (*5)

The Versions

18/02 2013

dev-master

9999999-dev http://silverstripe.org

Time dropdown for SilverStripe CMS

  Sources   Download

BSD-3-Clause

The Requires

 

form date time silverstripe

05/02 2013

0.1.x-dev

0.1.9999999.9999999-dev http://silverstripe.org

Time dropdown for SilverStripe CMS

  Sources   Download

BSD-3-Clause

The Requires

 

form date time silverstripe