Closed carstingaxion closed 1 week ago
✅ Viewed 684 - Event Date Block - Mike has it
✅ Reviewed June 22 - Mike has it
This will need to be a custom block as a block variation does not appear to be possible. I can still explore a bit, but I think the translations aspects of this make it pretty much impossible. We can still explore ways of replicating things done in the Post Date block to improve our current block.
https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-date
This is done.
Is your enhancement related to a problem? Please describe.
A new or updated Event Date block should …:
With that in place one could easily create many different layouts using one or multiple instances of the Event Date block within a singular or archive template, or even within a query block.
The UI for both dates should be merged into one, because people will probably ever want to define an end date, after they defined a start date. This should the save two-clicks for closing start- and opening end-date-fields.
Designs
The existing
core/post-date
has the most of what is needed, but is not prepared well to create block-variations from. Maybe GatherPress can re-use some of its components.Fixing the variation-problem in the source at Gutenberg, would be best.
Describe alternatives you've considered
No response
Code of Conduct