Examples¶
Simple side-by-side select field¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php¶
[
'columns' => [
'select_multiplesidebyside_1' => [
'label' => 'select_multiplesidebyside_1 autoSizeMax=10, size=3 description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => [
[
'label' => 'foo 1',
'value' => 1,
],
[
'label' => 'foo 2',
'value' => 2,
],
[
'label' => 'a divider',
'value' => '--div--',
],
[
'label' => 'foo 3',
'value' => 3,
],
[
'label' => 'foo 4',
'value' => 4,
],
[
'label' => 'foo 5',
'value' => 5,
],
[
'label' => 'foo 6',
'value' => 6,
],
],
'size' => 3,
'autoSizeMax' => 10,
'multiple' => true,
],
],
],
]
Side-by-side view with filter¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php¶
[
'columns' => [
'select_multiplesidebyside_5' => [
'label' => 'select_multiplesidebyside_5 multiSelectFilterItems',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => [
[
'label' => 'foo 1',
'value' => 1,
],
[
'label' => 'foo 2',
'value' => 2,
],
[
'label' => 'foo 3',
'value' => 3,
],
[
'label' => 'bar',
'value' => 4,
],
],
'multiSelectFilterItems' => [
[
'',
'',
],
[
'foo',
'foo',
],
[
'bar',
'bar',
],
],
],
],
],
]
Side-by-side select with field controls¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php¶
[
'columns' => [
'select_multiplesidebyside_6' => [
'label' => 'select_multiplesidebyside_6 fieldControl',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_styleguide_staticdata',
'size' => 5,
'autoSizeMax' => 20,
'fieldControl' => [
'editPopup' => [
'disabled' => false,
'options' => [
'windowOpenParameters' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
],
],
'addRecord' => [
'disabled' => false,
],
'listModule' => [
'disabled' => false,
],
],
],
],
],
]
Using a MM table¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php¶
[
'columns' => [
'select_multiplesidebyside_8' => [
'label' => 'select_multiplesidebyside_8 foreign_table mm',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_styleguide_staticdata',
'MM' => 'tx_styleguide_elements_select_multiplesidebyside_8_mm',
'size' => 3,
'autoSizeMax' => 10,
],
],
],
]