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.
How to configure limitations
In Content model, open a content type for editing.
For the element you want to limit, click .
Adjust the limits to fit your needs.
Click Save changes.
This is how you set up limitations and validation for a text element. Make sure to also provide guidelines while you're at it.
Use limitations as validation rules
Once you've set the limitations, they work as validation rules and provide content creators with visual cues.These limitations are visual reminders in all workflow steps before the Published step. Content creators see which elements still require work before they can publish the content item.
Incomplete asset element that's failing validation.
When an element in a content item doesn't meet the limitations, the item can't be published. This means if someone tries to publish the item, they'll see a notification below the element.
After attempting to publish a content item, incomplete elements become highlighted in red.
Validation rules for optional elements
You can also define limitations for elements that aren't set as required.For instance, you can make an asset element optional while setting its rules to accept exactly two assets. This results in your content creators being required to either leave the element empty or insert exactly two assets.
Finding incomplete elements
There is a handy notification in the content item's Content details.
You can see if you meet the limitations by checking the “left to complete” indicator in the Details sidebar on the right.
The item will also appear in your content list as Unfinished, indicated by an orange dot.
You can quickly find unfinished content items with incomplete elements using the Unfinished option in the Statusfilter.
Which elements can have limitations?
Asset elements
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.