Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
Examples
Simple input field
![](../../../../Images/AutomaticScreenshots/Input1.png)
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_basic.php
[
'columns' => [
'input_1' => [
'l10n_mode' => 'prefixLangTitle',
'exclude' => 1,
'label' => 'input_1 description',
'description' => 'field description',
'config' => [
'type' => 'input',
'behaviour' => [
'allowLanguageSynchronization' => true,
],
],
],
],
]
Copied!
Input with placeholder and null handling
![](../../../../Images/AutomaticScreenshots/Input28.png)
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_basic.php
[
'columns' => [
'input_28' => [
'exclude' => 1,
'label' => 'input_28',
'description' => 'placeholder=__row|input_26 mode=useOrOverridePlaceholder eval=null default=null',
'config' => [
'type' => 'input',
'placeholder' => '__row|input_26',
'eval' => 'null',
'default' => null,
'mode' => 'useOrOverridePlaceholder',
],
],
],
]
Copied!
Value slider
![](../../../../Images/AutomaticScreenshots/Input30.png)
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_basic.php
[
'columns' => [
'input_30' => [
'exclude' => 1,
'label' => 'input_30',
'description' => 'slider step=10 width=200 eval=trim,int',
'config' => [
'type' => 'input',
'size' => 5,
'eval' => 'trim,int',
'range' => [
'lower' => -90,
'upper' => 90,
],
'default' => 0,
'slider' => [
'step' => 10,
'width' => 200,
],
],
],
],
]
Copied!
Value picker
![](../../../../Images/AutomaticScreenshots/Input33.png)
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_basic.php
[
'columns' => [
'input_33' => [
'exclude' => 1,
'label' => 'input_33',
'description' => 'valuePicker',
'config' => [
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'valuePicker' => [
'items' => [
[
'spring',
'Spring',
],
[
'summer',
'Summer',
],
[
'autumn',
'Autumn',
],
[
'winter',
'Winter',
],
],
],
],
],
],
]
Copied!