flatpickr is a lightweight and powerful datetime picker.
Just install it from the REDAXO installer
{"class": "flatpickr","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"}
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
Vendor https://flatpickr.js.org