Sign up |
When you create a new section that has the 'Date' field defined, it is setting the maximum date to 2015 when you try and add a record you can't until you fix the constraint.
I'm not seeing a predetermined max date when creating a new date field... in ver 3.10 or even back to ver 2.61. What I see is shown in attached screenshot.
Could you be working with an older install where you need to manually enter the years range?
A screenshot of what you're seeing would be of help.
Nope current version, use 'news' preset and you should see it.
I see that too. To fix, open /data/schemaPresets/news.ini.php.
In the date array, change this:
'yearRangeStart' => '2008',
'yearRangeEnd' => '2016',
'yearRangeStart' => '',
'yearRangeEnd' => '',
This will allow you to use the current date.
I have sent this over to Dave to get added to the CMS Builder next build.
Okay, didn't know you were using a preset.
For me the version 3.10 'News' preset shows a default 2008 to 2016. That's just an example range.You can either expand that year range when creating the new section or you can edit the master 'news.ini.php' template. The year start or end can be whatever you set.
order = 8
label = "Date"
type = "date"
isUnique = 0
showTime = 0
showSeconds = 0
use24HourFormat = 0
yearRangeStart = 2008
yearRangeEnd = 2016
Just an update that for the Date field, the yearRangeStart and yearRangeEnd have been updated in the next version of CMS Builder (3.11) to be blank in both the schema presets for News and Blog.
Thanks for finding and noting this!