Field types
The Content Block field types mirror the available TCA types. Some types have been renamed to better reflect the actual usage. For the most part options are identical. There are some additional options, which are not available in TCA to ease the usage.
Common field options
Field options, which can be defined inside the fields array.
identifier
- 
                            
- Type
 - string
 - Required
 true
The field's identifier has to be unique within a Content Block. Exception is within a collections' field array, as this starts a new scope.
Warning
Avoid using dashes "-" inside your identifiers. They are not guaranteed to be escaped in the database. We recommend to always use snake case.
fields: identifier: my_identifier type: TextCopied! 
type
- 
                            
- Type
 - string
 - Required
 true
The field's type. See Field types.
fields: identifier: my_identifier type: TextCopied! 
label
- 
                            
- Type
 - string
 
By default labels should be defined inside the
labels.file. But in case there is only one language for the backend you may define labels directly in the YAML configuration. Translation files have precedence over this.xlf fields: identifier: my_identifier type: Text label: Static labelCopied! 
description
- 
                            
- Type
 - string
 
The same as for
labelabove.fields: identifier: my_identifier type: Text description: Static descriptionCopied! 
useExistingField
- 
                            
- Type
 - bool
 - Default
 - false
 
If set to true, the identifier is treated as an existing field from the Core or your own defined field in TCA. To learn more about reusing fields read this article.
fields: identifier: bodytext useExistingField: trueCopied! 
prefixField
- 
                            
- Type
 - boolean
 - Default
 - true
 
If set to false, the prefixing is disabled for this field. This overrules the global option prefixFields.
fields: identifier: my_identifier type: Text prefixField: falseCopied! 
prefixType
- 
                            
- Type
 - string
 - Default
 - full
 
Determines how to prefix the field if local
prefixor globalField prefixis enabled. Can be eitherFields full(default) orvendor.fields: identifier: my_identifier type: Text prefixField: true prefixType: vendorCopied! 
displayCond
- 
                            
- Type
 - string|array
 
Can be used to display the field only under certain conditions. Please have a look at the official documentation for more information.
# Simple, only one rule. displayCond: 'FIELD:identifier:=:value'Copied!# Multiple rules combined with AND. displayCond: AND: - 'FIELD:identifier:=:value' - 'FIELD:another_identifier:=:1'Copied!Tip
Fields used in a condition should have the column option
onset toChange reload. 
onChange
- 
                            
- Type
 - string
 
Can be used to trigger a reload of the Content Type when this specific field is changed. Should be used, if a rule of
displayis used for this field.Cond onChange: reloadCopied!