Skip to content

NEW Event Date block  #684

@carstingaxion

Description

@carstingaxion

Is your enhancement related to a problem? Please describe.

A new or updated Event Date block should …:

  • show the start date only
  • Show the end date only
  • Show start and end date
  • use the time and date formats saved in settings, by default
  • Allow to set a custom format
  • Should have proper documentation, incl. Datetime formatting confussion #727 (comment)

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions