key Log In or Register to edit

Date Field Plugin

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

  • Description:
  • Set SHORTDESCRIPTION = Adds a date type to forms
  • #Set DATEFORMAT = %d %b %Y
    • Format changed to make it sortable in TWiki tables. To get the old Format like "3 April 2005" set DATEFORMAT to '%e %B %Y'
See JS Calendar Contrib for additional settings.

Plugin Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip DateFieldPlugin.zip in your twiki installation directory. Content:
    File: Description:
%$MANIFEST%
  • Optionally, run DateFieldPlugin_installer to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
  • Alternatively, manually make sure the dependencies listed in the table below are resolved. %$DEPENDENCIES%
  • (Dakar) Visit configure in your TWiki installation, and enable the plugin in the {Plugins} section.

Plugin Info

Author: TWiki:Main.CrawfordCurrie http://www.c-dot.co.uk
Version: %$VERSION%
Copyright ©: 2004 Deutsche Bank AG
License: http://www.gnu.org/copyleft/gpl.html?
Change History:  
7265 Item180 removed pointless, outdated dependency check from Date Field Plugin
6653 Item196 removed spurious documentation. JS Calendar Contrib is now used, and there is no longer any plugin-specific setup for the calendar
5958 Item180 modernised Date Field Plugin, 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
9 Dec 2004 1.000 initial version
Dependencies: %$DEPENDENCIES%
Home: TWiki:Plugins/DateFieldPlugin
Feedback: TWiki:Plugins/DateFieldPluginDev

Related Topics: T Wiki Preferences, T Wiki Plugins, TWiki::Plugins/FormFieldsPlugin

This work was commissioned by Deutsche Bank AG.

-- TWiki:Main/CrawfordCurrie - %$DATE%

 
Ad Sponsor
Back to Redbourn
Copyright © We make no guarantee of the correctness of the content of this site. All material on this collaboration platform is the property of Martin Cleaver and the contributing authors.