Initial commit - Typo3 11.5.41

This commit is contained in:
Matteo Gallo
2026-07-03 17:53:31 +02:00
commit 5ca4743197
6811 changed files with 568848 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?php
defined('TYPO3') or die();
// Configure extension static template
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'static_info_tables',
'Configuration/TypoScript/Static',
'Static Info Tables'
);

View File

@@ -0,0 +1,17 @@
<?php
defined('TYPO3') or die();
call_user_func(
function ($extKey) {
if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extKey]['enableManager']) {
// Enable editing Static Info Tables
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['static_info_tables']['tables'])) {
$tableNames = array_keys($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extKey]['tables']);
foreach ($tableNames as $tableName) {
$GLOBALS['TCA'][$tableName]['ctrl']['readOnly'] = 0;
}
}
}
},
'static_info_tables'
);

View File

@@ -0,0 +1,37 @@
<?php
defined('TYPO3') or die();
// Configure static_lang_isocode field in TCA
$GLOBALS['TCA']['sys_language']['columns']['static_lang_isocode'] = [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_language.isocode',
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'static_languages',
'foreign_table' => 'static_languages',
'suggestOptions' => [
'default' => [
'pidList' => '0',
'additionalSearchFields' => 'lg_name_local',
],
],
'fieldWizard' => [
'recordsOverview' => [
'disabled' => true,
],
'tableList' => [
'disabled' => true,
],
],
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'sys_language',
'static_lang_isocode',
'',
'after:language_isocode'
);

View File

@@ -0,0 +1,321 @@
<?php
// Country reference data from ISO 3166-1
return [
'ctrl' => [
'label' => 'cn_short_en',
'label_alt' => 'cn_iso_2',
'label_alt_force' => 1,
'label_userFunc' => \SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaLabelProcessor::class . '->addIsoCodeToLabel',
'adminOnly' => true,
'rootLevel' => 1,
'is_static' => 1,
'readOnly' => 1,
'default_sortby' => 'ORDER BY cn_short_en',
'delete' => 'deleted',
'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries.title',
'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_countries.svg',
'searchFields' => 'cn_short_en,cn_official_name_local,cn_official_name_en',
],
'columns' => [
'cn_official_name_local' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_official_name_local',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '25',
'max' => '128',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cn_official_name_en' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_official_name_en',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '25',
'max' => '50',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'deleted' => [
'readonly' => 1,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
'config' => [
'type' => 'check',
],
],
'cn_iso_2' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_2',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '4',
'max' => '2',
'eval' => '',
'default' => '',
],
],
'cn_iso_3' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_3',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '5',
'max' => '3',
'eval' => '',
'default' => '',
],
],
'cn_iso_nr' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_nr',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '7',
'max' => '7',
'eval' => 'int',
'default' => '0',
],
],
'cn_parent_territory_uid' => [
'exclude' => false,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_parent_territory_uid',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['', 0],
],
'foreign_table' => 'static_territories',
'foreign_table_where' => 'ORDER BY static_territories.tr_name_en',
'itemsProcFunc' => \SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaSelectItemsProcessor::class . '->translateTerritoriesSelector',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
],
],
'cn_parent_tr_iso_nr' => [
'config' => [
'type' => 'passthrough',
],
],
'cn_capital' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_capital',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '15',
'max' => '45',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cn_tldomain' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_tldomain',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '5',
'max' => '',
'eval' => '',
'default' => '',
],
],
'cn_currency_uid' => [
'exclude' => false,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_currency_uid',
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'static_currencies',
'foreign_table' => 'static_currencies',
'foreign_table_where' => 'ORDER BY static_currencies.cu_name_en',
'suggestOptions' => [
'default' => [
'pidList' => '0',
],
],
'fieldWizard' => [
'recordsOverview' => [
'disabled' => true,
],
'tableList' => [
'disabled' => true,
],
],
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
],
],
'cn_currency_iso_nr' => [
'config' => [
'type' => 'passthrough',
],
],
'cn_currency_iso_3' => [
'config' => [
'type' => 'passthrough',
],
],
'cn_phone' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_phone',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '10',
'max' => '20',
'eval' => '',
'default' => '0',
],
],
'cn_eu_member' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_eu_member',
'exclude' => false,
'config' => [
'type' => 'check',
'default' => '0',
],
],
'cn_uno_member' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_uno_member',
'exclude' => false,
'config' => [
'type' => 'check',
'default' => '0',
],
],
'cn_address_format' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format',
'exclude' => false,
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['', '0'],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_1',
'1',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_2',
'2',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_3',
'3',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_4',
'4',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_5',
'5',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_6',
'6',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_7',
'7',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_8',
'8',
],
[
'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_9',
'9',
],
],
'default' => '0',
],
],
'cn_zone_flag' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_zone_flag',
'exclude' => false,
'config' => [
'type' => 'check',
'default' => '0',
],
],
'cn_short_local' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_short_local',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '25',
'max' => '50',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cn_short_en' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_short_en',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '25',
'max' => '50',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cn_country_zones' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_country_zones',
'exclude' => false,
'config' => [
'type' => 'inline',
'foreign_table' => 'static_country_zones',
'foreign_field' => 'zn_country_uid',
'foreign_table_field' => 'zn_country_table',
'foreign_default_sortby' => 'zn_name_local',
'maxitems' => '200',
'appearance' => [
'expandSingle' => 1,
'newRecordLinkAddTitle' => 1,
],
],
],
],
'types' => [
'1' => [
'showitem' => 'cn_short_local,cn_official_name_local,cn_official_name_en,--palette--;;1,--palette--;;5,--palette--;;2,--palette--;;3,--palette--;;6,--palette--;;4,cn_short_en,cn_country_zones'
]
],
'palettes' => [
'1' => [
'showitem' => 'cn_iso_nr,cn_iso_2,cn_iso_3',
'canNotCollapse' => '1'
],
'2' => [
'showitem' => 'cn_currency_uid,cn_currency_iso_nr,cn_currency_iso_3',
'canNotCollapse' => '1'
],
'3' => [
'showitem' => 'cn_capital,cn_uno_member,cn_eu_member',
'canNotCollapse' => '1'
],
'4' => [
'showitem' => 'cn_address_format,cn_zone_flag',
'canNotCollapse' => '1'
],
'5' => [
'showitem' => 'cn_parent_territory_uid,cn_parent_tr_iso_nr',
'canNotCollapse' => '1'
],
'6' => [
'showitem' => 'cn_phone,cn_tldomain',
'canNotCollapse' => '1'
]
]
];

View File

@@ -0,0 +1,98 @@
<?php
// Country subdivision reference data from ISO 3166-2
return [
'ctrl' => [
'label' => 'zn_name_local',
'label_alt' => 'zn_name_local,zn_code',
'adminOnly' => true,
'rootLevel' => 1,
'is_static' => 1,
'readOnly' => 1,
'default_sortby' => 'ORDER BY zn_name_local',
'delete' => 'deleted',
'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones.title',
'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_country_zones.svg',
'searchFields' => 'zn_name_en,zn_name_local',
],
'columns' => [
'deleted' => [
'readonly' => 1,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
'config' => [
'type' => 'check',
],
],
'zn_country_uid' => [
'config' => [
'type' => 'passthrough',
],
],
'zn_country_table' => [
'config' => [
'type' => 'passthrough',
],
],
'zn_country_iso_nr' => [
'config' => [
'type' => 'passthrough',
],
],
'zn_country_iso_2' => [
'config' => [
'type' => 'passthrough',
],
],
'zn_country_iso_3' => [
'config' => [
'type' => 'passthrough',
],
],
'zn_code' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.zn_code',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '18',
'max' => '45',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'zn_name_local' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.name',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '18',
'max' => '45',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'zn_name_en' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.zn_name_en',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '18',
'max' => '45',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
],
'types' => [
'1' => [
'showitem' => 'zn_name_local,zn_code,--palette--;;1,zn_name_en'
]
],
'palettes' => [
'1' => [
'showitem' => 'zn_country_uid,zn_country_iso_nr,zn_country_iso_2,zn_country_iso_3',
'canNotCollapse' => '1'
]
]
];

View File

@@ -0,0 +1,185 @@
<?php
// Currency reference data from ISO 4217
return [
'ctrl' => [
'label' => 'cu_name_en',
'label_alt' => 'cu_iso_3',
'label_alt_force' => 1,
'label_userFunc' => \SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaLabelProcessor::class . '->addIsoCodeToLabel',
'adminOnly' => true,
'rootLevel' => 1,
'is_static' => 1,
'readOnly' => 1,
'default_sortby' => 'ORDER BY cu_name_en',
'delete' => 'deleted',
'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies.title',
'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_currencies.svg',
'searchFields' => 'cu_name_en',
],
'columns' => [
'deleted' => [
'readonly' => 1,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
'config' => [
'type' => 'check',
],
],
'cu_iso_3' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_iso_3',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '5',
'max' => '3',
'eval' => '',
'default' => '',
],
],
'cu_iso_nr' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_iso_nr',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '7',
'max' => '3',
'eval' => '',
'default' => '0',
],
],
'cu_name_en' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_name_en',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '18',
'max' => '40',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cu_sub_name_en' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_name_en',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '18',
'max' => '20',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cu_symbol_left' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_symbol_left',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '8',
'max' => '12',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cu_symbol_right' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_symbol_right',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '8',
'max' => '12',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cu_thousands_point' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_thousands_point',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '3',
'max' => '1',
'eval' => '',
'default' => '',
],
],
'cu_decimal_point' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_decimal_point',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '3',
'max' => '1',
'eval' => '',
'default' => '',
],
],
'cu_decimal_digits' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_decimal_digits',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '5',
'max' => '',
'eval' => 'int',
'default' => '',
],
],
'cu_sub_divisor' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_divisor',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'int',
'default' => '1',
],
],
'cu_sub_symbol_left' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_symbol_left',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '8',
'max' => '12',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'cu_sub_symbol_right' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_symbol_right',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '8',
'max' => '12',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
],
'types' => [
'1' => [
'showitem' => 'cu_name_en,--palette--;;1,--palette--;;2,cu_sub_name_en,--palette--;;3'
]
],
'palettes' => [
'1' => [
'showitem' => 'cu_iso_nr,cu_iso_3',
'canNotCollapse' => '1'
],
'2' => [
'showitem' => 'cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point',
'canNotCollapse' => '1'
],
'3' => [
'showitem' => 'cu_sub_symbol_left,cu_sub_symbol_right,cu_decimal_digits,cu_sub_divisor',
'canNotCollapse' => '1'
]
]
];

View File

@@ -0,0 +1,117 @@
<?php
// Language reference data from ISO 639-1
return [
'ctrl' => [
'label' => 'lg_name_en',
'label_alt' => 'lg_iso_2',
'label_alt_force' => 1,
'label_userFunc' => \SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaLabelProcessor::class . '->addIsoCodeToLabel',
'adminOnly' => true,
'rootLevel' => 1,
'is_static' => 1,
'readOnly' => 1,
'default_sortby' => 'ORDER BY lg_name_en',
'delete' => 'deleted',
'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages.title',
'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_languages.svg',
'searchFields' => 'lg_name_en,lg_name_local',
],
'columns' => [
'deleted' => [
'readonly' => 1,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
'config' => [
'type' => 'check',
],
],
'lg_iso_2' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_iso_2',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '4',
'max' => '2',
'eval' => '',
'default' => '',
],
],
'lg_name_local' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.name',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '25',
'max' => '50',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'lg_name_en' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_name_en',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '18',
'max' => '40',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
'lg_typo3' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_typo3',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '3',
'max' => '2',
'eval' => '',
'default' => '',
],
],
'lg_country_iso_2' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_2',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '3',
'max' => '2',
'eval' => '',
'default' => '',
],
],
'lg_collate_locale' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_collate_locale',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '5',
'max' => '5',
'eval' => '',
'default' => '',
],
],
'lg_sacred' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_sacred',
'exclude' => false,
'config' => [
'type' => 'check',
'default' => '0',
],
],
'lg_constructed' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_constructed',
'exclude' => false,
'config' => [
'type' => 'check',
'default' => '0',
],
],
],
'types' => [
'1' => [
'showitem' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
]
]
];

View File

@@ -0,0 +1,84 @@
<?php
// UN Territory reference data
return [
'ctrl' => [
'label' => 'tr_name_en',
'label_alt' => 'tr_iso_nr',
'label_alt_force' => 1,
'label_userFunc' => \SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaLabelProcessor::class . '->addIsoCodeToLabel',
'adminOnly' => true,
'rootLevel' => 1,
'is_static' => 1,
'readOnly' => 1,
'default_sortby' => 'ORDER BY tr_name_en',
'delete' => 'deleted',
'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_territories.title',
'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_territories.svg',
'searchFields' => 'tr_name_en',
],
'columns' => [
'deleted' => [
'readonly' => 1,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
'config' => [
'type' => 'check',
],
],
'tr_iso_nr' => [
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_territories_item.tr_iso_nr',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '7',
'max' => '7',
'eval' => 'int',
'default' => '0',
],
],
'tr_parent_territory_uid' => [
'exclude' => false,
'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_territories_item.tr_parent_territory_uid',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['', 0],
],
'foreign_table' => 'static_territories',
'foreign_table_where' => 'ORDER BY static_territories.tr_name_en',
'itemsProcFunc' => \SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaSelectItemsProcessor::class . '->translateTerritoriesSelector',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
],
],
'tr_parent_iso_nr' => [
'config' => [
'type' => 'passthrough',
],
],
'tr_name_en' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.name',
'exclude' => false,
'config' => [
'type' => 'input',
'size' => '18',
'max' => '45',
'eval' => 'trim',
'default' => '',
'_is_string' => '1',
],
],
],
'types' => [
'1' => [
'showitem' => 'tr_iso_nr,tr_name_en,fk_billing_country,--palette--;;1'
]
],
'palettes' => [
'1' => [
'showitem' => 'tr_parent_territory_uid,tr_parent_iso_nr',
'canNotCollapse' => '1'
]
]
];