Table Configuration Array (TCA)
The icon database field type functions like a standard
single-select
field and displays all available icons. All configuration options for a
standard single-select field can be applied.
The backend icon selector
EXT:my_ext/Configuration/TCA/tx_myext_elements_icon.php
[
'columns' => [
'icon_select' => [
'label' => 'Icon selector',
'config' => [
'type' => 'icon',
'items' => [
['label' => 'Choose icon…', 'value' => '']
],
'itemGroups' => [
'icomoon' => 'Icomoon'
]
]
]
]
]
Copied!