11 Commits

Author SHA1 Message Date
Shawn Erquhart
9fd0ff4a6a
return date object from date/datetime widgets if no format set (#1296)
* return date object from date/datetime widgets if no format set

BREAKING CHANGE

As of 1.0, the documented behavior for the date and datetime widgets was
to always return a string value, but they were instead returning a date
object if the default date was not manually changed by the user. This
was addressed in #1143, but it became clear afterward that static site
generators were depending on the raw date objects that Netlify CMS was
unintentionally producing. Remaining as is or addressing the bug were
both "breaking" states, so this commit reverts to producing raw date
objects when no format is explicitly set.

It is now considered an edge case to require string dates, as most
static site generators expect to parse a raw date against formatting in
a site's templates.

Also note that this commit improves the original behavior by always
providing a date object when no format is provided, even if the user
manually changes the value.

* produce raw date when no format is provided
2018-05-25 12:03:44 -04:00
Shawn Erquhart
c1c30557a3
add docs menu sections (#1366) 2018-05-17 17:14:29 -04:00
Roger Zurawicki
cd30b59b92 Support displayFields in the Relation widget (#1303)
* Support displayFields in the Relation widget

* Fix typo

* Wrap display fields in String constructors

* 📝 Documentation updates
2018-05-01 16:43:08 -07:00
Damien Duhamel
32a340e608 Update markdown widget documentation 2018-04-16 18:12:11 -04:00
Damien Duhamel
79f6672228 Use an isHidden property 2018-04-16 18:12:11 -04:00
Damien Duhamel
4ff56a1838 Update markdown widget documentation 2018-04-16 18:12:11 -04:00
Steve Lathrop
2033d535d1 Use double quotes consistently 2018-04-12 10:27:47 -04:00
Caleb
5d94af8e7c Use Hugo page bundles. 2018-03-29 17:04:47 -04:00
Sam
a2d4267500 Allow adding items to be disabled for list widget (#1102) 2018-03-15 16:16:32 -04:00
Sumeet Jain
b272553c7b Corrects docs re: 'relation' widget configuration
Fixes #1042
2018-01-24 11:54:18 -05:00
Henrique Cavalieri
1167f27939 New design for the widgets section in the docs (#866)
* Initial commit for the new widgets section

* Placing all the widgets and refining the CSS and Hugo logic

* Initial commit for the new widgets section

* Placing all the widgets and refining the CSS and Hugo logic

* Rebased and updated the info according to @verythorough contribution

* Fixing the yaml codes for the relation and select widget sections

* Merging with widgets.md and app.j

* Fixing some silly mistakes (sorry!)

* Following @verythorough contributions :)

* Adding the markdown widget and fixing the widgets container background

* Adding the URL functionality and myself as a contributor :)

* Adding myself as a contributor :)
2018-01-03 15:14:15 -07:00