Announcing DateBox
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.
In simpler terms, that means, with DateBox installed on your site, users can enter dates like
- Today
- Tomorrow
- next friday
- 6 april
- 7th may 2006
and the datebox widget will convert that into proper date formats (eg: YYYY-MM-DD).
Download: Get it here
DateBox is also available on Plone.org under the Products section
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’)
)
A demo type is included. Set INSTALL_DEMO_TYPES = False in config.py to disable it.