Create and delete content types
Before you can start writing content, you need to define at least one content type. Content types serve as templates for content items so that each item has a predefined structure.
Table of contents
Create content types
- In Content model, click Create new.
- Type a name in Content type name.
- Drag content elements as needed.
- Tip: You can add the elements by clicking.
- (Optional) Add content groups to organize elements in tabs for content creators.
- Click Save changes.
Duplicate content types
If you want to create a modified version of a content type, open the content type and click Duplicate in the top right. This creates a duplicate of your content type named “Type_name (copy)” in the project.
When defining a content type, you can configure its elements by clicking the Show configuration button. This lets you specify element limitations and choose if the element is required or non-localizable.
By default, each element you add is optional. If you set the element as required, content creators will know which elements they need to fill in when working with content items.
Non-localizable elements are available through early access program and may change in the future. Get familiar with current limitations.
Contact us and we'll activate non-localizable elements for you.
If you want an element to have the same value in all languages, set the element as non-localizable.
Non-localizable setting is permanent
The non-localizable setting is irreversible and cannot be changed for existing elements.
If you set an element as both non-localizable and required, the element must be published in the default language first.
Content creators can edit non-localizable elements only in the default language. In other languages, non-localizable elements take the value from the default language and appear as read-only.
Early access limitations for non-localizable elements
Only newly added date & time, multiple choice, number, and text elements can be set as non-localizable. We're working on adding support for more elements.
URL slug elements cannot generate their value from non-localizable text elements.
A part of content repeats a lot?
If you have an element with a part of content that repeats a lot (like
https:// in URLs), set a default value for the element.
When you create a new content item, the element gets pre-filled with the default value and you can just add the parts that are different.
You can set a default value for
Remember, if an element repeats with content as a whole, convert it to a content item and reuse it like that.
You can remove any element from a content type at any time, even when the content type is used by a content item.
This action is not reversible. Removing an element from a content type removes the element across all content items with all its data.
Codenames identify objects, such as content types, in Kontent by Kentico. A codename is initially generated by the system from the object's name when it is saved for the first time.
You can edit codenames in the UI by clicking the Codename button and then the Edit button or via API by, for example, see modifying a content type.
Rules for codenames
When editing codenames, the new codenames must meet the following conditions:
- Only lowercase letters, numbers, and underscores are permitted.
- Codenames must start with a letter or an underscore and have at least one character.
- Codenames are usually limited to 60 characters, but longer codenames are allowed for multiple choice options and taxonomy terms.
- Codenames of elements within a snippet must be prefixed with the snippet's codename.
- Codenames must be unique per object type. This applies to, for example, every element within a content type, every content type within a project, every content item within a project, and so on.
This means the following applies when codenames are generated automatically:
- All letters are made lowercase.
- All forbidden characters are replaced by
- For any names that start with a number, the codename will start with
- Codenames that duplicate another codename will have a random string attached to the end.
- Codenames of elements within a snippet will be prefixed with the snippet's codename.
- Codenames will be cut off at the character limit.
Delete content types
If you want to delete a content type that is already used for any components or content items, you need to delete the content items first.
To delete a content type:
- In Content model, use the checkboxes to select the content types you want to delete.
- Click Delete.
The content type is now removed and cannot be restored.
- Organize your elements with content groups when creating content types.
- Configure limitations on your elements to control what needs to be done before publishing.
- Create content type snippets to have the same collections of content elements in multiple content types.
- Use guidelines to give your team useful information for more efficient production.