Skip navigation

Configuring limitations in content types

Do you want to set limits on what needs to be in your content items before they are published? Do you want to make sure your content contributors know when their text is too long or a file they uploaded is too large? You can achieve this by setting limitations for elements when defining a content type.

Table of contents

    Once you've got them set, your limitations will work as validation rules and provide content contributors with visual cues such as these:

    A screenshot of limitations in an item.

    These limitations will stay as only visual reminders in all workflow steps before Published. Content contributors will see which elements still require work before they publish the content item. There is a handy notification on the Details tab.

    A picture of the notification of incomplete elements.

    The item will also appear in your content list as Unfinished, symbolized by an orange status dot.

    A screenshot of an unfinished item in the content list.

    When a content item doesn't meet the limitations, it can't be published. This means if someone tries to publish the item, they'll see a notification like the one below.

    A screenshot of noticiations about unfinished elements.

    Which elements can have limitations

     The following elements can have limitations added to them for a content type:

    • Text content elements can have a maximum length set as the number of words or characters.
    • Rich text content elements can have the following limits set: 
      • The text can have a maximum length set as the number of words or characters.
      • Images within the element can be limited in their maximum size (in kB or MB), image height (maximum, minimum, or exact number in px), and image width (maximum, minimum, or exact number in px). By limiting the image types to Adjustable images, you can restrict image formats to only jpg, png, gif, and webp. These image types support image transformation via the Delivery API.
      • Components and linked items within the element can be limited to certain content types.
    • Asset elements can have limits in the number of assets (maximum, minimum, or exact number) and maximum size (in kB or MB). You can set limits for images within the element in terms of their height (maximum, minimum, or exact number in px) and width (maximum, minimum, or exact number in px). By limiting the file types to Adjustable images, you can restrict formats to only jpg, png, gif, and webp. These image types support image transformation via the Delivery API.
    • Linked items elements can have limits in the number of items that can be added (maximum, minimum, or exact number) and the specific content types that can be added.

    Note: The image width and height are only displayed in the asset thumbnail when these limitations are set for the element. If needed, you can always find the image dimensions in the asset detail.

    How to configure limitations

    1. In a given content type, choose the content element to which you want to add limitations.
    2. Click .
    3. Adjust the limits to fit your needs.
    4. Click Save changes to store the changes to your content type.

    An animation of setting limitations.

    What's next?