wiki:DateFieldPlugin

Version 1 (modified by coderanger, 7 years ago) (diff)

New hack DateFieldPlugin, created by coderanger

Add custom date fields to tickets

Description

This plugin allows specifying custom fields for entering dates in tickets. Just set up the field normally, then use these extra options:

fieldname.date = true
Enable extra date stuff on this field.
fieldname.date_empty
Allow this field to be blank.

Currently this will only validate that the given input looks like the specified date format (see below). Date range checking could be added if someone asks nicely enough.

The only configurable options are the date format and separator. Valid formats are dmy, mdy, and ymd.

Bugs/Feature Requests

Existing bugs and feature requests for DateFieldPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out DateFieldPlugin from here using Subversion, or browse the source with Trac.

Example

To enable:

[components]
datefield.* = enabled

To configure:

[datefield]
format = ymd
separator = -

Recent Changes

[13931] by rjollos on 2014-05-20 16:39:26
3.0.0dev: Use jQuery-UI from Trac. Refs #10107.
[12118] by rjollos on 2012-10-06 19:38:30
Highlight the current day, as requested by ynoslenav on the mailing list. The option does not seem to be effective on the 0.11 branch.
[11717] by rjollos on 2012-07-09 14:52:45
Refs #10107: Branching to support Trac 1.0. Bump DateFieldPlugin version to 3.0.0dev.

Author/Contributors

Author: coderanger
Contributors:

Attachments (4)

Download all attachments as: .zip