Contentblocks custom input field: datepicker

How do I create a custom input field as a date picker for contentblocks?

1 Like

Here’s how to build custom inputs in ContentBlocks:

1 Like

Here is a quick and dirty way: MODX ContentBlocks Custom Input Date Type Plugin · GitHub

Oh, great.
But it does not work.
I get an error-message:

Uh oh, could not load the input type cbdateinput

What is the output-Variable in the template-field?

Did you set the Plugin on this both events?

  • OnDocFormPrerender
  • ContentBlocks_RegisterInputs

Wonderful, now I’m no longer getting any error messages.
However, what’s missing is the “Delete” button in content blocks so that I can remove the content again.

You have to add this (: