Date Box Widget
Category: Fields and widgets
—
Other products by this author
Current release: Date Box Widget 1.0.2
Released Apr 10, 2006 — tested with Plone 2.1.2
Initial release of DateBox Widget Product.
Experimental releases
There are no experimental releases available at the moment.
Project Description
- Project resources
DateBox is a Plone Archetype Field using JavaScript, DHTML and advanced Date parsing to generate the date based on the grammar passed. The purpose of DateBox is to simplify the date entering process using grammatical terms we are all familiar with.
A demo type is included. Set INSTALL_DEMO_TYPES = False in config.py to disable it.
In the demo try these:
* Today
* tod
* tomorrow
* tom
* yesterday
* 6
* 6th
* 6th October
* 3rd of Feb
* 10th Feb 2004
* 14th of Februrary
* 12 feb
* 1 ja
* next Friday
* next fri
* next m
* last Monday
* last mon
* last m
* 2004-8-8 (ISO)
* 2004-04-04
* 1/24/2005 (US)
* 4/26
Usage:
1. Install as usual in your Products folder
2. Install in your Plone Site with the Quickinstaller tool
3. In your custom Archetype, add :
from Products.DateBox import DateBoxField
from Products.DateBox import DateBoxWidget
4. Use like a regular field/widget in your Type's Schema. There is an included example.
Full usage example::
DateBoxField('test_datebox',
required = True,
widget = DateBoxWidget(lable = 'Test DateBox',
description = 'Test DateBox Field',
label = 'Test Datebox',
i18n_domain = 'plone')
)