Hi,
I find a bug in 3.3.6 to select the date of birth of member
Is impossible in front end to select an older date as the date of the day
it's pity to select a date of birth
I don't see the solution in the Contao Changelog
Hi,
I find a bug in 3.3.6 to select the date of birth of member
Is impossible in front end to select an older date as the date of the day
it's pity to select a date of birth
I don't see the solution in the Contao Changelog
Exemple : http://sportation.fr/fr/creer-son-co...Tennis&cgs=oui
Look 3th fields : date
How do you add the calendar to the form field. Are you using an extension?
In the JS Code for the initialization there is a 'minDate' defined.
Extensions :: Github :: No support via PM.
I have 'mindate' but is a date of the day
Code:window.addEvent('domready', function() { new Picker.Date($$('#ctrl_dateOfBirth'), { 'draggable': 'false', 'pickerClass': 'datepicker_bootstrap', 'useFadeInOut': '!Browser.ie', 'startDay': 0, 'titleFormat': '%B %d%o, %Y', 'minDate': new Date(2015, 1, 11), 'positionOffset': {x:0,y:0}, 'format': '%d-%m-%Y' }); });
Last edited by tom-over; 02/13/2015 at 12:14.
Yep, "minDate" has to be removed ... howsoever it was added.
There is more discussed in the german commnuity board: https://community.contao.org/de/show...417#post358417
Extensions :: Github :: No support via PM.
Correct mootools selector for element with ID is
$('ctrl_dateOfBirth')
http://mootools.net/core/docs/1.5.1/...#Window:dollar
Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
Amazon wishlist
Ok thanks,
I find the place to update line 169 in FormCalendarField.php
Code:<script> window.addEvent('" . $jsEvent . "', function() { new Picker.Date($('#ctrl_" . $this->strId . "'), { " . implode(",\n", $arrCompiledConfig) . " }); }); </script>"; But i always have a error message : Please enter a date in the future (including today).
Last edited by tom-over; 02/13/2015 at 12:14.
What does your DCA configuration look like?
terminal42 gmbh
We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.
In DCA tl_member of this modules, I juste have :
i delete this code in FormCalendarField.php and is ok for the moment :Code:$GLOBALS['TL_DCA']['tl_member']['fields']['dateOfBirth']['inputType'] = 'calendar';
Code:/*case '+0': if ($intTstamp < $objToday->dayBegin) { $this->addError($GLOBALS['TL_LANG']['ERR']['calendarfield_direction_+0']); } break;*/
Bookmarks