Default keyword schema example
This schema example shows how to use the default keyword to set initial values for items. You can use the default keyword with strings, numbers, booleans and lists, as well as content and image links.
Pre-requisitesLink copied!
None. This is a self contained schema.
How to useLink copied!
Use the examples in this schema as a starting point for applying default values to your own properties.
Info
To use the example-image-link and example-content-link properties, you will need to update these properties to use an image and a content item from your own hub.
In the example-image-link property, the default value includes all the properties returned by an image-link object, including the id, name, endpoint and default host. The easiest way to find all these values is to publish a content item containing the image and view the item in JSON format from a link in the "Content delivery" section of the content form. See content item properties for more details.
For the example-content-link property you can also find the contentType and id fields from the content item properties window and use these values to define a default content-link.