Agility is equipped with many useful Field Types that can be used to help you successfully model your Content Models and Page Modules.
A Text Field allows editors to enter a single line of editable text, often used for titles, labels or placeholders.
A Multi-Line Text Field allows editors to enter multiple lines of editable text.
The HTML Field is a Rich Text Content Editor used to quickly and easily add and control the appearance of HTML content on a webpage without having to write HTML code.
The Drop-down List field allows editors to select one of many options in a drop-down list.
The URL Field allows editors to define a URL thats links to an internal page, external page or to a file.
The Number Field allows editors to enter a number.
The Decimal Field allows editors to enter a number in decimal format.
The Date/Time Field allows editors to select a date and time.
The True/False Field allows editors to select between a True or False value.
Default Value: Set the default Boolean value to true of false.
Linked Content fields allow you to reference another content list. This field can be useful for creating relationships between content items or nesting lists within an item.
The Linked Content field lets you link content from a new or an existing content list.
Example: Linking to a list of recently published blog posts.
Hidden Fields can be created to store values used by a content model or page module and will not be visible on your site.
Hidden fields will also be automatically created when choosing "Create a new Field" for the "Save Text to Field" or "Save Value to Field" options in your Field Properties so any pages or content using that Model/Module will know where to find that stored information.
Hidden fields created for Save Text/Value to Field are imperative to storing field values for your content models and page modules and should not be deleted from the model or disabled from the Field Properties tab.
Custom fields allow you to render a custom UI for a field that an Editor interacts within Agility.
Example: Color Picker Field
The Custom Section Field is a field that can contain custom HTML content and is only visible within the CMS.
The Image Field allows editors to select an image.
The Gallery Field allows editors to select multiple images.
The File field allows Editors to select a file.
The List of Files field allows editors to select multiple files.
We provide advanced options for some of our fields such as Limits and Validations, first we'll look at Limits.
Often users are required to set limits to fields of text. Character limits can come from brand and style requirements to maintain brand compliance. Or to support rendering content on mobile devices with smaller screens.
By setting character limits the user is automatically blocked from entering characters when the text reaches the maximum character allowed. This removes human error and saves a lot of time and resources reviewing and fixing content.
Agility provides a quick and easy way to set character limits on Fields for both Content Models and Page Modules.
1. Navigate to your Models area, then select Page Modules or Content Models. For this example we'll be using a Page Module.
2. Select a Module and add a Text Field or edit and existing one and then click Advanced
3. Set a Maximum Length and then click Update Field
The current maximum length of a text field is 128 characters.
Images and Files are an important piece of content but special care should be taken to ensure they're optimized for the web. Images that are not sized correctly will affect page performance and create potential layout issues.
Agility provides a simple way to validate Image and File Fields for both Content Models and Page Modules. You can restrict by File Size, Height, Width, Valid File Types, and create custom Validation Message to help enforce proper image guidelines.
1. Navigate to your Models area, then select Page Modules or Content Models. For this example we'll be using a Page Module again.
2. Select a Module and add a Image Field or edit and existing one and then click Field Properties
3. Set your Restrictions for File Type, File Size or Image dimensions and click Update Field