As you may know, the Joomla API to display calendar is based on the DynCalendar JS API.
This API is used since Joomla 1.0 and seems to have never really change ... since 2005 !?
For the developpers, this API is very poor, give so few parameters and will get some CSS trouble under IE browsers (IE9).
With the arrival of Joomla 3.0 with Bootstrap and JQuery, we have 2 new and fresh Datepickers coming !
Bootstrap-Datepicker (is not attached to the twitter bootstrap's project) seems to have less display type and parameters than the JQuery one. it has been reported that the bootstrap-datepicker is a stand alone project and may not be compatible with some version of Bootstrap (like the version 2.0.2) and some browser like IE7+ (corrections has been made on a fork of this project (
http://aymkdn.github.com/Datepicker-for-Bootstrap).
The JQuery Datepicker has a wide wide list of configurable parameters and a wide type of rendering (simple date, inline display, range of date, multiple months display ...).
One objectif may be to keep the actual API instanciation with JHtml::_('calendar', + parameters) to have backwards compatibility.
We can used the last parameters to pass HTML parameters (such as display types).
And we may need to add a new last parameter as 'jsattribs' to pass javascript attribs to the datepicker.
To make it works we have to add ressources in Joomla 3.0 as :
- datepicker.js
- css and images of necessary icons not currently added in joomla
We have try (one dev from Hikashop team 'Jerome' and i) to replace DynCalendar with the Datepicker of Bootstrap.
The datepicker solution seems to work perfectly and may be used by developpers with no change.
Based on a 3.0 alpha 2, we have actually modify the behavior.calendar and the JHtml::_('calendar', ...) and it works pretty good.
We are going to publish some information about our work :
- a google doc to explain our choice and proposal (the media/jui structure may need some changes !?)
- We are preparing a submit on the bugtracker for this feature and to post our patchs.
We also have begin to write an explanation content of the use and configuration of this DatePicker.
What do you think about this ?
Any suggestions or modifications needed ?
How can we proceed to deliver this patch ? by patch files on the bug tracker ?
Kind regards,
Marc STUDER (aka Garstud)