Textarea

The Textarea type is for multi line text input. A Rich Text Editor can be enabled.

It corresponds with the TCA type => 'text'.

SQL overrides via alternativeSql allowed: yes.

Settings

enableRichtext
Required:false
Type:boolean
Default:false

If set to true, the system renders a Rich Text Editor if that is enabled for the editor (default: yes), and if a suitable editor extension is loaded (default: rte_ckeditor).

If either of these requirements is not met, the system falls back to a <textarea> field.

default
Required:false
Type:string

Default value set if a new record is created.

placeholder
Required:false
Type:string

Placeholder text for the field.

richtextConfiguration
Required:false
Type:string

The value is a key in $GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets'] array and specifies the YAML configuration source field used for that RTE field. It does not make sense without having property enableRichtext set to true.

Extension rte_ckeditor registers three presets: default, minimal and full and points to YAML files with configuration details.

Integrators may override for instance the default key to point to an own YAML file which will affect all core backend RTE instances to use that configuration.

If this property is not specified for an RTE field, the system will fall back to the default configuration.

rows
Required:false
Type:integer
Default:5

Abstract value for the height of the <textarea> field. Max value is 20.

required
Required:false
Type:boolean
Default:false

If set, the field will become mandatory.

Examples

Minimal

name: example/textarea
group: common
fields:
  - identifier: textarea
    type: Textarea

Advanced / use case

name: example/textarea
group: common
fields:
  - identifier: textarea
    type: Textarea
    enableRichtext: true
    richtextConfiguration: full
    default: 'Default value'
    placeholder: 'Placeholder text'
    rows: 15