pikim / grav-plugin-events

This plugin provides Calendar Events for Grav CMS
MIT License
13 stars 11 forks source link

Blueprint breaks relative dateRange values #41

Open beejay41 opened 1 month ago

beejay41 commented 1 month ago

The blueprint for the events template prevents the use of Date Tools constants like datetools.startOfWeek or DateTime relative values such as last monday, for dateRange in the Admin interface. Worse, any such values added in the Page Expert view or edited directly, are lost if the page is saved later from the Normal view.

Unfortunately, Grav does not provide a date field which accepts relative values, but I would suggest that a normal text field would be better suited in this context, since the use of a relative date is more useful than defining a specific date (and would not destroy carefully entered values).

Small point, but a great plugin, thanks.