I'm developping a module that use the calendar.
In my .xml file I have :
Code: Select all
<field
name="start"
type="calendar"
format="%Y"
default="2019"
label="MOD_INFORMATION_FIELD_START_YEAR_LABEL"
description="MOD_INFORMATION_FIELD_START_YEAR_DESC" />
The year in the field is at "1970" and the date selected when I click on the calendar icon is the date of the prensent day.
Moreover when I save my parameter (ex : "2015") and I go back to the Edit panel, the date is again at "1970". Each time I want to change one parameter I also have to change the date.
Can someone tell me how the "default" option work?
Thank you!