Skip navigation

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

    Moreover, once the content is approved and finished, you can rely on its structure when submitting the content to various content management systems.

    Each content type consists of content elements, which are essential pieces that you mix and match to create different content types.

    Creating content types

    To create a content type:

    1. From the app menu, choose .
    2. Click Create new.
    3. Type a name in Content type name.
    4. Drag content elements as needed into the predefined content group.
      Tip: You can also add the elements by clicking.
    5. (Optional) Add content groups to organize your content types.
    6. Click Save changes.

    Duplicating content types

    If you want to create a different version of the same content type, open it and click Duplicate in the top right. This creates a duplicate of your content type named “Type_name (copy)” in the project.

    Configuring elements

    When defining a content type, you can configure any of its elements by clicking .

    Each element you add is optional by default and can be set as required in its configuration options. Content contributors will then know which elements they need to fill in when working with content items.

    An animation of how to configure an element.

    Removing elements

    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 data.

    Editing codenames

    Codenames identify objects, such as content types, in Kentico Kontent. 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 button and then the  button or via API by, for example, modifying a content type.

    A screenshot of the edit codename button.

    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.

    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 n.
    • 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.

    Deleting 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 first.

    To delete a content type:

    1. From the app menu, choose .
    2. Use the checkboxes to select the content types you want to delete.
    3. Click Delete.

    The content type is now removed and cannot be restored.

    What's next?