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 select drop down with static and database values
[
'columns' => [
'select_single_3' => [
'exclude' => 1,
'label' => 'select_single_3 static values, dividers, foreign_table_where',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
[
'Static values',
'--div--',
],
[
'static -2',
-2,
],
[
'static -1',
-1,
],
[
'DB values',
'--div--',
],
],
'foreign_table' => 'tx_styleguide_staticdata',
'foreign_table_where' => 'AND {#tx_styleguide_staticdata}.{#value_1} LIKE \'%foo%\' ORDER BY uid',
'foreign_table_prefix' => 'A prefix: ',
],
],
],
]
Copied!
Select foreign rows with icons
[
'columns' => [
'select_single_12' => [
'exclude' => 1,
'label' => 'select_single_12 foreign_table selicon_field',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_styleguide_elements_select_single_12_foreign',
'fieldWizard' => [
'selectIcons' => [
'disabled' => false,
],
],
],
],
],
]
Copied!
Select a single value from a list of elements
[
'columns' => [
'select_single_10' => [
'exclude' => 1,
'label' => 'select_single_10 size=6, three options',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
[
'foo 1',
1,
],
[
'foo 2',
2,
],
[
'a divider',
'--div--',
],
[
'foo 3',
3,
],
],
'size' => 6,
],
],
],
]
Copied!