Learn how you can set additional field values when exporting content from Google Docs or Notion to Contentful.
slug
.
Field type | Allowed values |
---|---|
Short text | Any text value |
Long text | Any text value |
Integer | A text value representing a number, e.g. 123 |
Decimal | A text value representing a decimal, e.g. 1.23 |
Date & Time | A text value representing a date in https://en.wikipedia.org/wiki/ISO_8601, e.g. 2022-09-24T09:24:53 |
Boolean | A text value represents a boolean value. The value must be either true or false |
Short text, list | A text value representing a single item (e.g. Travel) or a list of items, delimited by a semicolon (;), e.g. Travel; Shopping. |
Reference | A text value with the id of the referenced entry. If the field is configured with a validation rule that limits the referenced entry to specific entry types, you can also use the title of the referenced entry. See more detail below. |
References, many | A text value with the id of the referenced entry. You can use a semicolon (;) to separate multiple entries, e.g. Category 1; Category 2. If the field is configured with a validation rule that limits the referenced entry to specific entry types, you can also use the title of the referenced entry. See more detail below. |
Media | An image value |
id
of referenced entry or the title of the referenced entry. Let’s look at these in more detail.
author
field in the Blog Post, the value can be either the id
or name
of an author.
For example, let’s say we have the following author entries in Contentful.
Id | Name |
---|---|
2h06k81RVAAI9R0N6GsbWF | Peter Parker |
pqI6NaSl9sW6bOr3fZzNM | James Earl Jones |
author
field to either 2h06k81RVAAI9R0N6GsbWF
or Peter Parker
.
;
).
Let’s look at our “Blog Post” model from before:
categories
field in the “Blog Post”, the value can be either the id
or name
of a category.
For example, let’s say we have the following category entries in Contentful.
Id | Name |
---|---|
l6sfqcZGhxgREl9UB0cKo | Travel |
6doYzrj2D79n6tYJ2lsOZd | Asia |
categories
field to “Travel”, you can set the value to either l6sfqcZGhxgREl9UB0cKo
or Travel
. If you want to set the categories
field to both categories, you can set the value to either l6sfqcZGhxgREl9UB0cKo; 6doYzrj2D79n6tYJ2lsOZd
, or Travel; Asia
.
You can even mix the use of id
and name
. For example, you can set the value to l6sfqcZGhxgREl9UB0cKo; Asia
, which will assign both categories to the field.