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...
Have you a solution ?
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...
Have you a solution ?
Geändert von tom-over (10.02.2015 um 13:15 Uhr)
Exemple : http://sportation.fr/fr/creer-son-co...Tennis&cgs=oui
Look 3th fields : date
Salut!
When you add the datepicker you apparently set the option "minDate" which creates your problem. This should probably be "maxDate" as you use it for birthdays.
But I don't see the option "minDate".
In a module register, the form is automatic
I d'ont understand...
In a page source :
HTML-Code:<script> 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' }); }); </script>
Geändert von tom-over (11.02.2015 um 11:25 Uhr)
With just Contao Core you get the form alright, but you don't get the datepicker. This has to be added, for example in your template (otherwise you wouldn't get the JS-code you posted).
Where do you get your other fields (e.a. 'profession'?) from? Maybe you might look there for more options.
Excuse me but my english is not very good...
Exactly what I need to change ?
But dateofbirth is natif in Contao (in core)
Is bug of Contao no ?
I used the registration module to add member...
Geändert von tom-over (11.02.2015 um 12:22 Uhr)
I could try in french, but I'm not sure if that's better
You need to find the place where the javascript code for the datepicker is added.
First check the template you use in the registration module.
If it's not there: which extensions do you use to make the other fields in your form (for example 'profession')?
the field: yesBut dateofbirth is natif in Contao (in core)
but: you don't have option to add datepicker, or do you? and datepicker is where your problem is
Geändert von Hanski (11.02.2015 um 12:29 Uhr)
I forgot to install the extension Field Calendar
https://contao.org/en/extension-list...060029.en.html
Yep, that was all we needed to know !!!
For form fields of this type you get the option for "Date direction" ... the selected value in your birthday field is ... "Only dates in the future (including today)".
This has to be changed to "Only dates in the past".
Extensions :: Github
Sponsering: Amazon Wunschliste :: Github :: PayPal
Composer Version prüfen https://jubianchi.github.io/semver-check
I found this code :
I do this :Code:switch ($dateDirection) { case '+0': $arrConfig['minDate'] = 'new Date(' . date('Y') . ', ' . (date('n')-1) . ', ' . date('j') . ')'; break; case '+1': $time = strtotime('+1 day'); $arrConfig['minDate'] = 'new Date(' . date('Y', $time) . ', ' . (date('n', $time)-1) . ', ' . date('j', $time) . ')'; break; case '-1': $time = strtotime('-1 day'); $arrConfig['maxDate'] = 'new Date(' . date('Y', $time) . ', ' . (date('n', $time)-1) . ', ' . date('j', $time) . ')'; break; }
But I have a message error :Code:switch ($dateDirection) { case '+0': $arrConfig['minDate'] = 'new Date(1920, 1, 1)'; break; case '+1': $time = strtotime('+1 day'); $arrConfig['minDate'] = 'new Date(' . date('Y', $time) . ', ' . (date('n', $time)-1) . ', ' . date('j', $time) . ')'; break; case '-1': $time = strtotime('-1 day'); $arrConfig['maxDate'] = 'new Date(' . date('Y', $time) . ', ' . (date('n', $time)-1) . ', ' . date('j', $time) . ')'; break; }
Please enter a date in the future (including today).
Geändert von tom-over (11.02.2015 um 14:41 Uhr)
you do not have to change code ... go to the form generator in backend ... select your form ... serach the birthday field ... edit it and change the "Date direction" field.
Extensions :: Github
Sponsering: Amazon Wunschliste :: Github :: PayPal
Composer Version prüfen https://jubianchi.github.io/semver-check
I don't understand
Where in backend ?
I not use the form generator... is a module member register in my website.
I make a modul to add the field in tl_member : profession, level tennis, ....
Geändert von tom-over (11.02.2015 um 17:19 Uhr)
alors, j'essaie en francais...
Tu as écrit de l'extension 'calenderfield', tu l'utilises ou pas?
Si non, je ne sais pas, comment tu as attaché le datepicker au formulaire autre que addition de le code javascript dans le template pour la module.
Peux-tu regarder à ce template, si il y a cet code?
edit:
Un screenshot de la module membre registrer pourrait aider aussi
Geändert von Hanski (11.02.2015 um 17:44 Uhr)
I think have found a solution : https://community.contao.org/en/show...8022#post98022
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)