a11y_datetime is an accessibility-focused fork of flatpickr.
The addon package name stays flatpickr on purpose to keep existing REDAXO installations, installer updates, and project references fully compatible.
Internally, the frontend assets have been migrated to a11y_datetime.
Website: https://friendsofredaxo.github.io/a11y_datetime/
GitHub: https://github.com/FriendsOfREDAXO/a11y_datetime
Just install it from the REDAXO installer
{"class": "flatpickr","data-locale":"de","data-enableTime":"true"}You can also use the new class name:
{"class": "a11y_datetime","data-locale":"de","data-enableTime":"true"}<input type="date" class="form-control flatpickr" data-locale="de" data-enableTime="true" name="REX_INPUT_VALUE[1]" value="REX_VALUE[1]">{"class": "flatpickr_range","data-locale":"de","data-enableTime":"true", "data-rangefield":"#id"}or
{"class": "a11y_datetime_range","data-locale":"de","data-enableTime":"true", "data-rangefield":"#id"}If you don't want to see the time in a date-field, don't use the timepicker and set an alternative View.
Just set the data-altFormat. 😀
{"class":"flatpickr","data-altFormat":"j. F, Y"}You can disable dates via a comma seprated list. The attribute ist data-disabled.
Example:
{"class": "flatpickr","data-locale":"de","data-enableTime":"true", "data-disabled":"2022-12-11,2022-12-24,2022-12-25"}Friends Of REDAXO
Project lead Thomas Skerbis