Configure 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 creators 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 creators with visual cues such as these:
These limitations will stay as only visual reminders in all workflow steps before Published. Content creators will see which elements still require work before they publish the content item. There is a handy notification in the Content details.
The item will also appear in your content list as Unfinished, symbolized by an orange status dot.
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.
Which elements can have limitations
You can set limitations for the following elements:
- 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. You can also allow only specific types of text formatting. This way you can prevent content creators, for example, from using H1 headings or links. Text can be allowed or forbidden.
- Images within the element can be limited in their maximum size (in kB, MB, or GB) and height and 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. Images can be allowed or forbidden.
- Components and linked items within the element can be limited to certain content types. Components and linked items can be allowed or forbidden.
- For tables, you can limit allowed text formatting along with the use of headings, lists, and images in table cells. Tables can be allowed or forbidden.
- Asset elements can have limits in the number of assets (maximum, minimum, or exact number) and maximum size (in kB, MB, or GB). You can set limits for images within the element in terms of their height 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.
How to find out image dimensions
The image width and height are displayed in the asset thumbnail only when asset limitations are set for an element. If needed, you can always find the image dimensions in the asset detail.
How to configure limitations
- In a given content type, choose the content element to which you want to add limitations.
- Click Show configuration.
- Adjust the limits to fit your needs.
- Click Save changes.