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).
The blueprint for the events template prevents the use of Date Tools constants like
datetools.startOfWeek
or DateTime relative values such aslast 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.