Provides support for a new type, date, in form fields. When a form field is set to this type it will no longer be editable by normal means, but only through a date selection popup.
WARNING: TWiki-4 only. If you want to use this plugin with an earlier version of TWiki, please see here
Usage
In a form definition, enter date where you would normally put text . For example:
| Birthday | date | 0 | 1 April 2004 | A date |
This will display an uneditable text field and a date selection icon that can be clicked to use the Mishoo Javascript calendar widget to insert a date. The size field is ignored.
If you want to use Javascript to create other data types in form fields, you can use this plugin as a model of how to do it.
Settings
The default date format is taken from the JSCalendarContrib settings. You can change the date format by setting the TWiki variable 'DATEFORMAT' in your TWikiPreferences, your WebPreferences or in a topic. For example:
Set DATEFORMAT = %c
Look up strftime in Google for a full list of the format options.
The plugin can default to todays date by setting the TWiki variable 'DATEFIELDPLUGIN_DEFAULTTOTODAY' in your TWikiPreferences, your WebPreferences or in a topic. For example:
TWikibug:Item196 - removed spurious documentation. JSCalendarContrib is now used, and there is no longer any plugin-specific setup for the calendar
5958
TWikibug:Item180 - modernised DateFieldPlugin, and made mklinks.sh link in contribs. Also added a copy option, for people like Anton who want to make local dists for upload to remote servers
5451
Initial revision
03 Jan 2005
1.001 make outputformat configurable; changed standard format to sortable dates