Kontent.ai
Connect a Kontent account
Introduction
This document will walk you through connecting your Kontent account to Cloudpress, allowing Cloudpress to export content to Kontent.
Create a content type
Before you connect your Kontent account, you must create a project and a content type for the content you wish to export in Kontent if you have not already done so.
The content type must contain at least the following elements:
- One text element. This element will be used for the item title. When exporting content, Cloudpress sets the value of this element to the title of the document.
- One rich text element. This element will be used to store the content of the document.
You can see an example Blog Post content type defined in Kontent in the screenshot below. In this case, the element named Title will be used as the title of the document, and the Content element will be used for the document's content.
For more information, refer to Create and delete content types in the Kontent documentation.
Connect your Kontent account
Go to the Connections page in Cloudpress, click the Add Connection button and then select Kontent from the list.
This will take you to the Connect a Kentico Kontent account screen:
You will need to specify the following information:
- Connection name. A unique name for this connection on Cloudpress. This name will be used wherever Cloudpress refers to this connection, so use a descriptive name.
- Project ID. This is the ID of your project and can be found by going to Project Settings > API keys in the Kontent application.
- Content Management API Key. This can be found by going to Project Settings > API keys in the Kontent application. You may need to enable the Management API first.
Once you have specified this information, you can click on the Connect account button to connect this account.
Configure your account
After you have connected the account, you will need to give Cloudpress more information about the Kontent content model. Go to the Content Model tab on the connection detail screen.
You will need to specify the codenames for the content type, as well as the elements that will be used for the item title and content. You can copy the codenames by clicking the codename button ({#}) near the name of the content type and content elements on the Content Type screen in Kontent.
- Content type codename is the codename for the content type you want to use when exporting documents to this connection.
- Title element codename is the codename for the element that will be used for the item title.
- Content element codename is the codename for the element that will be used to store the content for the item.
- Language is the code name for the language that should be used. When exporting a document, Cloudpress will create a language variant for this language. You can find the code name for the language by going to Project Settings > Localization in the Kontent application
Once you have completed the information, you can click the Save Changes button to complete the configuration of your Kontent account.