Skip to main content
Browse Documentation

Data formats

Created by r.turner, last modified by r.bromley on 20 Jul 2021

The data format property is used as an extension of a data type to describe the structure and intent of the data. For example, a location has a data type of object, and a data format of location. Another example is a HTML block, which has a data type of string and a data format of html.

The data format is a string value and is designed to allow custom types to be added.

Supported data formats

The following list contains the data formats that are currently understood by Contensis:

Data format Data type Description Applicable Validations
entry object An entry format for storing content. required
allowedContentTypes
asset object An asset format that represents a file resource. required
allowedContentTypes
location object Represents a point on the surface of the Earth. required
quote object A quote with text and a source. required
requiredFields
dateRange object Represents a range of date times. required
min
max
pastDateTime
image object Wraps an Asset with an additional caption property. required
requiredFields
field objectArray Represents a composed type, defined as an objectArray data type. required
allowedFieldTypes
component.* object Represents a component type. The asterisk represents the component id. required
allowedFieldTypes
heading string Represents a document heading. required
html string A string of HTML markup. required
markdown string A string of markdown markup. required

 

Necessary Cookies
These cookies are necessary for this website to function correctly. They are set when you perform certain actions on the site, such as creating an account, logging in, changing your privacy preferences or submitting a form. You can block these cookies in your browser, but this will stop parts of the site from working properly.
Functional Cookies
These cookies allow the website to provide extra functionality and more personalised experiences. They may be set by us or by third party providers whose services we have added to our pages. If you choose not to allow these cookies, these services may not work correctly.
Analytical Cookies
These cookies record anonymous data on how visitors use our website to help us monitor how well our website works. This data includes how many people have looked at specific pages, how long visitors stay on the site, and what devices they use. We use this data to identify changes that we could make to improve your experience and make our website more efficient.
Marketing Cookies
We set some cookies so you are shown more relevant marketing content. These include cookies from third-party advertising networks to show you different adverts on their services if you have previously visited our site. If you choose not to allow these cookies, you may experience less relevant advertising on other sites.