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.

  • What version of EE? – Derek Hogue Dec 18 '15 at 17:48
  • Hi Derek. Expression Engine 3. – ccdavies Dec 18 '15 at 19:52
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).

  • 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 Dec 18 '15 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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