feat(core): allow custom summary on entry cards (#2140)

This commit is contained in:
Austin Devine
2019-03-29 18:30:38 +00:00
committed by Shawn Erquhart
parent 228271194b
commit 573ad8816d
7 changed files with 146 additions and 83 deletions

View File

@ -171,6 +171,7 @@ The `collections` setting is the heart of your Netlify CMS configuration, as it
* `preview_path`: see detailed description below
* `fields` (required): see detailed description below
* `editor`: see detailed description below
* `summary`: see detailed description below
The last few options require more detailed information.
@ -320,3 +321,14 @@ This setting changes options for the editor view of the collection. It has one o
editor:
preview: false
```
### `summary`
This setting allows the customisation of the collection list view. Similar to the `slug` field, a string with templates can be used to include values of different fields, e.g. `{{title}}`.
This option over-rides the default of `title` field and `identifier_field`.
**Example**
```yaml
summary: "Version: {{version}} - {{title}}"
```