Adding Fields to a Content Structure
When adding a new Field to a Structure, the highlighted fields in the image below must be filled out to help format the type of data that the field will accept/display.
Example 1: Multi Select Field
Example 2: Text Field
- Variable/ID - displays the field type after the field has been saved
- Element Type - choose whether the element will be a Field, a Divider, a dotCMS Tab, or a Constant Field (For more information, see the following documentation on Element Types)
- *Display Type - choose the standard, WYSIWYG or Tag and Category field types
- Label - give a label or title to the field
- Data Type - format the field to store data as Text, Decimal, or Whole Number values
- Validation Regex - use pre-defined or custom regular expressions to limit the way that data can be entered into the field (please see the documentation section on Validation Expressions)
- Code - some field types (radio, multi select, etc.) require parameter definitions (sample code/instructions are displayed highlighted in yellow to the right of the code field
- Default Value - whatever data is placed as a default value will automatically populate the Structure Field when new Content is added using the Structure
- Hint - place instructions for contribution content to this field, will display when
- Required - check this box if the field is a required field and must not be left null
- User Searchable - check this box to allow users to search by the data in this field to find the matching content (will automatically index the content)
- System Indexed - checking this box allows the field to be indexed (field data is attached to a unique value for tracking/organizing field data)
- Show in Listing - check this box to allow this field to display as a search results column when searching for content
- Unique - checking this box ensures that no duplicate data will be allowed in this field
Post a Comment