0

Is it possible to have a date input field in a control panel view page?

Is there any kind of build in javascript library for the date calendar etc?

Thank you.

2
  • What version of EE? Commented Dec 18, 2015 at 17:48
  • Hi Derek. Expression Engine 3.
    – ccdavies
    Commented Dec 18, 2015 at 19:52

1 Answer 1

0

Take a look at the display_field() method of the first party Date fieldtype. The key thing is to use a text input with a rel="date-picker" attribute, but there are a few other things that need to be loaded, depending on where in the CP you are displaying it (some language strings, for example).

1
  • Thank you Derek. I have taken a look at the date fieldtype and see the display_field() function, but I don't really understand how I would call this function into my mcp. Would you be able to explain?
    – ccdavies
    Commented Dec 18, 2015 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.