first commit
This commit is contained in:
commit
1218dd1517
12716 files changed
+989233
No files matched your search
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'identifier',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.ctrl.title',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'mimetypes-x-content-domain',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'identifier' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.identifier',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.identifier',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 35,
|
||||
'max' => 255,
|
||||
// identifier is used as directory name - allow a-z,0-9,_,- as chars only.
|
||||
// unique is additionally checked server side
|
||||
'eval' => 'required, lower, alphanum_x, trim',
|
||||
],
|
||||
],
|
||||
'rootPageId' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.rootPageId',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.rootPageId',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'readOnly' => true,
|
||||
'renderType' => 'selectSingle',
|
||||
'foreign_table' => 'pages',
|
||||
'foreign_table_where' => ' AND (is_siteroot=1 OR (pid=0 AND doktype IN (1,6,7))) AND l10n_parent = 0 ORDER BY pid, sorting',
|
||||
],
|
||||
],
|
||||
'base' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.base',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.base',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
],
|
||||
],
|
||||
'baseVariants' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.baseVariants',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.baseVariants',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_base_variant',
|
||||
'appearance' => [
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'languages' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_language',
|
||||
'foreign_selector' => 'languageId',
|
||||
'foreign_unique' => 'languageId',
|
||||
'size' => 4,
|
||||
'minitems' => 1,
|
||||
'appearance' => [
|
||||
'collapseAll' => true,
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandling' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.errorHandling',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_errorhandling',
|
||||
'appearance' => [
|
||||
'collapseAll' => true,
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'routes' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.routes',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_route',
|
||||
'appearance' => [
|
||||
'collapseAll' => true,
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => '--palette--;;default,--palette--;;base,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.languages, languages,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.errorHandling, errorHandling,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.routes, routes',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'default' => [
|
||||
'showitem' => 'rootPageId, identifier'
|
||||
],
|
||||
'base' => [
|
||||
'showitem' => 'base, baseVariants'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'base',
|
||||
'label_alt' => 'condition',
|
||||
'label_alt_force' => true,
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.ctrl.title',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'mimetypes-x-content-domain',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'base' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.base',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_base_variant.base',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.base.placeholder',
|
||||
],
|
||||
],
|
||||
'condition' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_base_variant.condition',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
[ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.applicationContext', 'applicationContext == "Production"'],
|
||||
[ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.environmentVariable', 'getenv("mycontext") == "production"'],
|
||||
],
|
||||
],
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.placeholder',
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'base,condition',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'errorHandler',
|
||||
'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getErrorHandlingTitle',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.ctrl.title',
|
||||
'type' => 'errorHandler',
|
||||
'typeicon_column' => 'errorHandler',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'default-not-found',
|
||||
'Fluid' => 'mimetypes-text-html',
|
||||
'Page' => 'apps-pagetree-page-content-from-page',
|
||||
'PHP' => 'mimetypes-text-php',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'errorCode' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorCode',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim, int',
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 599,
|
||||
],
|
||||
'size' => 8,
|
||||
'default' => 404,
|
||||
'valuePicker' => [
|
||||
'mode' => '',
|
||||
'items' => [
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.404', '404'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.403', '403'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.500', '500'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.503', '503'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.0', '0'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'required' => true,
|
||||
'items' => [
|
||||
['', ''],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.fluid', 'Fluid'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.page', 'Page'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.php', 'PHP'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorFluidTemplate' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorFluidTemplate',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate.placeholder',
|
||||
],
|
||||
],
|
||||
'errorFluidTemplatesRootPath' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplatesRootPath',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'errorFluidLayoutsRootPath' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidLayoutsRootPath',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'errorFluidPartialsRootPath' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidPartialsRootPath',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'errorContentSource' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorContentSource',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'renderType' => 'inputLink',
|
||||
'eval' => 'required',
|
||||
'fieldControl' => [
|
||||
'linkPopup' => [
|
||||
'options' => [
|
||||
'blindLinkOptions' => 'file,mail,spec,folder',
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorPhpClassFQCN' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorPhpClassFQCN',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN.placeholder',
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => '--palette--;;general',
|
||||
],
|
||||
'Fluid' => [
|
||||
'showitem' => '--palette--;;general, errorFluidTemplate,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.tab.rootpaths,
|
||||
errorFluidTemplatesRootPath, errorFluidLayoutsRootPath, errorFluidPartialsRootPath',
|
||||
],
|
||||
'Page' => [
|
||||
'showitem' => '--palette--;;general, errorContentSource',
|
||||
],
|
||||
'PHP' => [
|
||||
'showitem' => '--palette--;;general, errorPhpClassFQCN',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'general' => [
|
||||
'showitem' => 'errorCode, errorHandler'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'languageId',
|
||||
'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getSiteLanguageTitle',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.ctrl.title',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'mimetypes-x-content-domain',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'languageId' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.languageId',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['Default Language', 0],
|
||||
],
|
||||
'foreign_table' => 'sys_language',
|
||||
'size' => 1,
|
||||
'min' => 1,
|
||||
'max' => 1,
|
||||
],
|
||||
],
|
||||
'title' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 15,
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'English',
|
||||
],
|
||||
],
|
||||
'navigationTitle' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.navigationTitle',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.navigationTitle',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 15,
|
||||
'eval' => 'trim',
|
||||
'placeholder' => 'English',
|
||||
],
|
||||
],
|
||||
'base' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.base',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.base',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'default' => '/',
|
||||
'placeholder' => '/',
|
||||
],
|
||||
],
|
||||
'locale' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.locale',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.locale',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'size' => 10,
|
||||
'placeholder' => 'en_US.UTF-8',
|
||||
],
|
||||
],
|
||||
'iso-639-1' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.iso-639-1',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.iso-639-1',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
// Fed by data provider
|
||||
'items' => [],
|
||||
],
|
||||
],
|
||||
'hreflang' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.hreflang',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.hreflang',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
'size' => 6,
|
||||
'placeholder' => 'en-US',
|
||||
],
|
||||
],
|
||||
'enabled' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 1,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
1 => ''
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
'direction' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.direction',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.direction',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['None', '', ''],
|
||||
['Left to Right', 'ltr', ''],
|
||||
['Right to Left', 'rtl', ''],
|
||||
],
|
||||
],
|
||||
],
|
||||
'typo3Language' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.typo3Language',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.typo3Language',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
// Fed by data provider
|
||||
'items' => [],
|
||||
'default' => 'default'
|
||||
],
|
||||
],
|
||||
'flag' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.flag',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['global', 'global', 'flags-multiple'],
|
||||
['ad', 'ad', 'flags-ad'],
|
||||
['ae', 'ae', 'flags-ae'],
|
||||
['af', 'af', 'flags-af'],
|
||||
['ag', 'ag', 'flags-ag'],
|
||||
['ai', 'ai', 'flags-ai'],
|
||||
['al', 'al', 'flags-al'],
|
||||
['am', 'am', 'flags-am'],
|
||||
['an', 'an', 'flags-an'],
|
||||
['ao', 'ao', 'flags-ao'],
|
||||
['aq', 'aq', 'flags-aq'],
|
||||
['ar', 'ar', 'flags-ar'],
|
||||
['as', 'as', 'flags-as'],
|
||||
['at', 'at', 'flags-at'],
|
||||
['au', 'au', 'flags-au'],
|
||||
['aw', 'aw', 'flags-aw'],
|
||||
['ax', 'ax', 'flags-ax'],
|
||||
['az', 'az', 'flags-az'],
|
||||
['ba', 'ba', 'flags-ba'],
|
||||
['bb', 'bb', 'flags-bb'],
|
||||
['bd', 'bd', 'flags-bd'],
|
||||
['be', 'be', 'flags-be'],
|
||||
['bf', 'bf', 'flags-bf'],
|
||||
['bg', 'bg', 'flags-bg'],
|
||||
['bh', 'bh', 'flags-bh'],
|
||||
['bi', 'bi', 'flags-bi'],
|
||||
['bj', 'bj', 'flags-bj'],
|
||||
['bl', 'bl', 'flags-bl'],
|
||||
['bm', 'bm', 'flags-bm'],
|
||||
['bn', 'bn', 'flags-bn'],
|
||||
['bo', 'bo', 'flags-bo'],
|
||||
['bq', 'bq', 'flags-bq'],
|
||||
['br', 'br', 'flags-br'],
|
||||
['bs', 'bs', 'flags-bs'],
|
||||
['bt', 'bt', 'flags-bt'],
|
||||
['bv', 'bv', 'flags-bv'],
|
||||
['bw', 'bw', 'flags-bw'],
|
||||
['by', 'by', 'flags-by'],
|
||||
['bz', 'bz', 'flags-bz'],
|
||||
['ca', 'ca', 'flags-ca'],
|
||||
['catalonia', 'catalonia', 'flags-catalonia'],
|
||||
['cc', 'cc', 'flags-cc'],
|
||||
['cd', 'cd', 'flags-cd'],
|
||||
['cf', 'cf', 'flags-cf'],
|
||||
['cg', 'cg', 'flags-cg'],
|
||||
['ch', 'ch', 'flags-ch'],
|
||||
['ci', 'ci', 'flags-ci'],
|
||||
['ck', 'ck', 'flags-ck'],
|
||||
['cl', 'cl', 'flags-cl'],
|
||||
['cm', 'cm', 'flags-cm'],
|
||||
['cn', 'cn', 'flags-cn'],
|
||||
['co', 'co', 'flags-co'],
|
||||
['cr', 'cr', 'flags-cr'],
|
||||
['cs', 'cs', 'flags-cs'],
|
||||
['cu', 'cu', 'flags-cu'],
|
||||
['cv', 'cv', 'flags-cv'],
|
||||
['cw', 'cw', 'flags-cw'],
|
||||
['cx', 'cx', 'flags-cx'],
|
||||
['cy', 'cy', 'flags-cy'],
|
||||
['cz', 'cz', 'flags-cz'],
|
||||
['de', 'de', 'flags-de'],
|
||||
['dj', 'dj', 'flags-dj'],
|
||||
['dk', 'dk', 'flags-dk'],
|
||||
['dm', 'dm', 'flags-dm'],
|
||||
['do', 'do', 'flags-do'],
|
||||
['dz', 'dz', 'flags-dz'],
|
||||
['ec', 'ec', 'flags-ec'],
|
||||
['ee', 'ee', 'flags-ee'],
|
||||
['eg', 'eg', 'flags-eg'],
|
||||
['eh', 'eh', 'flags-eh'],
|
||||
['en-us-gb', 'en-us-gb', 'flags-en-us-gb'],
|
||||
['england', 'england', 'flags-gb-eng'],
|
||||
['gb-eng', 'gb-eng', 'flags-gb-eng'],
|
||||
['er', 'er', 'flags-er'],
|
||||
['es', 'es', 'flags-es'],
|
||||
['et', 'et', 'flags-et'],
|
||||
['eu', 'eu', 'flags-eu'],
|
||||
['fi', 'fi', 'flags-fi'],
|
||||
['fj', 'fj', 'flags-fj'],
|
||||
['fk', 'fk', 'flags-fk'],
|
||||
['fm', 'fm', 'flags-fm'],
|
||||
['fo', 'fo', 'flags-fo'],
|
||||
['fr', 'fr', 'flags-fr'],
|
||||
['ga', 'ga', 'flags-ga'],
|
||||
['gb', 'gb', 'flags-gb'],
|
||||
['gd', 'gd', 'flags-gd'],
|
||||
['ge', 'ge', 'flags-ge'],
|
||||
['gf', 'gf', 'flags-gf'],
|
||||
['gg', 'gg', 'flags-gg'],
|
||||
['gh', 'gh', 'flags-gh'],
|
||||
['gi', 'gi', 'flags-gi'],
|
||||
['gl', 'gl', 'flags-gl'],
|
||||
['gm', 'gm', 'flags-gm'],
|
||||
['gn', 'gn', 'flags-gn'],
|
||||
['gp', 'gp', 'flags-gp'],
|
||||
['gq', 'gq', 'flags-gq'],
|
||||
['gr', 'gr', 'flags-gr'],
|
||||
['gs', 'gs', 'flags-gs'],
|
||||
['gt', 'gt', 'flags-gt'],
|
||||
['gu', 'gu', 'flags-gu'],
|
||||
['gw', 'gw', 'flags-gw'],
|
||||
['gy', 'gy', 'flags-gy'],
|
||||
['hk', 'hk', 'flags-hk'],
|
||||
['hm', 'hm', 'flags-hm'],
|
||||
['hn', 'hn', 'flags-hn'],
|
||||
['hr', 'hr', 'flags-hr'],
|
||||
['ht', 'ht', 'flags-ht'],
|
||||
['hu', 'hu', 'flags-hu'],
|
||||
['id', 'id', 'flags-id'],
|
||||
['ie', 'ie', 'flags-ie'],
|
||||
['il', 'il', 'flags-il'],
|
||||
['im', 'im', 'flags-im'],
|
||||
['in', 'in', 'flags-in'],
|
||||
['io', 'io', 'flags-io'],
|
||||
['iq', 'iq', 'flags-iq'],
|
||||
['ir', 'ir', 'flags-ir'],
|
||||
['is', 'is', 'flags-is'],
|
||||
['it', 'it', 'flags-it'],
|
||||
['jm', 'jm', 'flags-jm'],
|
||||
['jo', 'jo', 'flags-jo'],
|
||||
['jp', 'jp', 'flags-jp'],
|
||||
['ke', 'ke', 'flags-ke'],
|
||||
['kg', 'kg', 'flags-kg'],
|
||||
['kh', 'kh', 'flags-kh'],
|
||||
['ki', 'ki', 'flags-ki'],
|
||||
['km', 'km', 'flags-km'],
|
||||
['kn', 'kn', 'flags-kn'],
|
||||
['kp', 'kp', 'flags-kp'],
|
||||
['kr', 'kr', 'flags-kr'],
|
||||
['kw', 'kw', 'flags-kw'],
|
||||
['ky', 'ky', 'flags-ky'],
|
||||
['kz', 'kz', 'flags-kz'],
|
||||
['la', 'la', 'flags-la'],
|
||||
['lb', 'lb', 'flags-lb'],
|
||||
['lc', 'lc', 'flags-lc'],
|
||||
['li', 'li', 'flags-li'],
|
||||
['lk', 'lk', 'flags-lk'],
|
||||
['lr', 'lr', 'flags-lr'],
|
||||
['ls', 'ls', 'flags-ls'],
|
||||
['lt', 'lt', 'flags-lt'],
|
||||
['lu', 'lu', 'flags-lu'],
|
||||
['lv', 'lv', 'flags-lv'],
|
||||
['ly', 'ly', 'flags-ly'],
|
||||
['ma', 'ma', 'flags-ma'],
|
||||
['mc', 'mc', 'flags-mc'],
|
||||
['md', 'md', 'flags-md'],
|
||||
['me', 'me', 'flags-me'],
|
||||
['mf', 'mf', 'flags-mf'],
|
||||
['mg', 'mg', 'flags-mg'],
|
||||
['mh', 'mh', 'flags-mh'],
|
||||
['mi', 'mi', 'flags-mi'],
|
||||
['mk', 'mk', 'flags-mk'],
|
||||
['ml', 'ml', 'flags-ml'],
|
||||
['mm', 'mm', 'flags-mm'],
|
||||
['mn', 'mn', 'flags-mn'],
|
||||
['mo', 'mo', 'flags-mo'],
|
||||
['mp', 'mp', 'flags-mp'],
|
||||
['mq', 'mq', 'flags-mq'],
|
||||
['mr', 'mr', 'flags-mr'],
|
||||
['ms', 'ms', 'flags-ms'],
|
||||
['mt', 'mt', 'flags-mt'],
|
||||
['mu', 'mu', 'flags-mu'],
|
||||
['mv', 'mv', 'flags-mv'],
|
||||
['mw', 'mw', 'flags-mw'],
|
||||
['mx', 'mx', 'flags-mx'],
|
||||
['my', 'my', 'flags-my'],
|
||||
['mz', 'mz', 'flags-mz'],
|
||||
['na', 'na', 'flags-na'],
|
||||
['nc', 'nc', 'flags-nc'],
|
||||
['ne', 'ne', 'flags-ne'],
|
||||
['nf', 'nf', 'flags-nf'],
|
||||
['ng', 'ng', 'flags-ng'],
|
||||
['ni', 'ni', 'flags-ni'],
|
||||
['gb-nir', 'gb-nir', 'flags-gb-nir'],
|
||||
['nl', 'nl', 'flags-nl'],
|
||||
['no', 'no', 'flags-no'],
|
||||
['np', 'np', 'flags-np'],
|
||||
['nr', 'nr', 'flags-nr'],
|
||||
['nu', 'nu', 'flags-nu'],
|
||||
['nz', 'nz', 'flags-nz'],
|
||||
['om', 'om', 'flags-om'],
|
||||
['pa', 'pa', 'flags-pa'],
|
||||
['pe', 'pe', 'flags-pe'],
|
||||
['pf', 'pf', 'flags-pf'],
|
||||
['pg', 'pg', 'flags-pg'],
|
||||
['ph', 'ph', 'flags-ph'],
|
||||
['pk', 'pk', 'flags-pk'],
|
||||
['pl', 'pl', 'flags-pl'],
|
||||
['pm', 'pm', 'flags-pm'],
|
||||
['pn', 'pn', 'flags-pn'],
|
||||
['pr', 'pr', 'flags-pr'],
|
||||
['ps', 'ps', 'flags-ps'],
|
||||
['pt', 'pt', 'flags-pt'],
|
||||
['pw', 'pw', 'flags-pw'],
|
||||
['py', 'py', 'flags-py'],
|
||||
['qa', 'qa', 'flags-qa'],
|
||||
['qc', 'qc', 'flags-qc'],
|
||||
['re', 're', 'flags-re'],
|
||||
['ro', 'ro', 'flags-ro'],
|
||||
['rs', 'rs', 'flags-rs'],
|
||||
['ru', 'ru', 'flags-ru'],
|
||||
['rw', 'rw', 'flags-rw'],
|
||||
['sa', 'sa', 'flags-sa'],
|
||||
['sb', 'sb', 'flags-sb'],
|
||||
['sc', 'sc', 'flags-sc'],
|
||||
['gb-sct', 'gb-sct', 'flags-gb-sct'],
|
||||
['sd', 'sd', 'flags-sd'],
|
||||
['se', 'se', 'flags-se'],
|
||||
['sg', 'sg', 'flags-sg'],
|
||||
['sh', 'sh', 'flags-sh'],
|
||||
['si', 'si', 'flags-si'],
|
||||
['sj', 'sj', 'flags-sj'],
|
||||
['sk', 'sk', 'flags-sk'],
|
||||
['sl', 'sl', 'flags-sl'],
|
||||
['sm', 'sm', 'flags-sm'],
|
||||
['sn', 'sn', 'flags-sn'],
|
||||
['so', 'so', 'flags-so'],
|
||||
['sr', 'sr', 'flags-sr'],
|
||||
['ss', 'ss', 'flags-ss'],
|
||||
['st', 'st', 'flags-st'],
|
||||
['sv', 'sv', 'flags-sv'],
|
||||
['sx', 'sx', 'flags-sx'],
|
||||
['sy', 'sy', 'flags-sy'],
|
||||
['sz', 'sz', 'flags-sz'],
|
||||
['tc', 'tc', 'flags-tc'],
|
||||
['td', 'td', 'flags-td'],
|
||||
['tf', 'tf', 'flags-tf'],
|
||||
['tg', 'tg', 'flags-tg'],
|
||||
['th', 'th', 'flags-th'],
|
||||
['tj', 'tj', 'flags-tj'],
|
||||
['tk', 'tk', 'flags-tk'],
|
||||
['tl', 'tl', 'flags-tl'],
|
||||
['tm', 'tm', 'flags-tm'],
|
||||
['tn', 'tn', 'flags-tn'],
|
||||
['to', 'to', 'flags-to'],
|
||||
['tr', 'tr', 'flags-tr'],
|
||||
['tt', 'tt', 'flags-tt'],
|
||||
['tv', 'tv', 'flags-tv'],
|
||||
['tw', 'tw', 'flags-tw'],
|
||||
['tz', 'tz', 'flags-tz'],
|
||||
['ua', 'ua', 'flags-ua'],
|
||||
['ug', 'ug', 'flags-ug'],
|
||||
['um', 'um', 'flags-um'],
|
||||
['us', 'us', 'flags-us'],
|
||||
['uy', 'uy', 'flags-uy'],
|
||||
['uz', 'uz', 'flags-uz'],
|
||||
['va', 'va', 'flags-va'],
|
||||
['vc', 'vc', 'flags-vc'],
|
||||
['ve', 've', 'flags-ve'],
|
||||
['vg', 'vg', 'flags-vg'],
|
||||
['vi', 'vi', 'flags-vi'],
|
||||
['vn', 'vn', 'flags-vn'],
|
||||
['vu', 'vu', 'flags-vu'],
|
||||
['gb-wls', 'gb-wls', 'flags-gb-wls'],
|
||||
['wf', 'wf', 'flags-wf'],
|
||||
['ws', 'ws', 'flags-ws'],
|
||||
['ye', 'ye', 'flags-ye'],
|
||||
['yt', 'yt', 'flags-yt'],
|
||||
['za', 'za', 'flags-za'],
|
||||
['zm', 'zm', 'flags-zm'],
|
||||
['zw', 'zw', 'flags-zw'],
|
||||
],
|
||||
'size' => 1,
|
||||
'minitems' => 0,
|
||||
'maxitems' => 1,
|
||||
'fieldWizard' => [
|
||||
'selectIcons' => [
|
||||
'disabled' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'fallbackType' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbackType',
|
||||
'displayCond' => 'FIELD:languageId:>:0',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['Strict: Show only translated content, based on overlays', 'strict'],
|
||||
['Fallback: Show default language if no translation exists', 'fallback'],
|
||||
['Free mode: Ignore translation and overlay concept, only show data from selected language', 'free'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'fallbacks' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbacks',
|
||||
'displayCond' => 'FIELD:languageId:>:0',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectMultipleSideBySide',
|
||||
'items' => [
|
||||
['Default Language', 0],
|
||||
],
|
||||
'foreign_table' => 'sys_language',
|
||||
'size' => 5,
|
||||
'min' => 0,
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => '--palette--;;default, --palette--;;locale-related, --palette--;;rendering-related, flag, --palette--;;languageIdPalette',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'default' => [
|
||||
'showitem' => 'title, enabled, --linebreak--, base'
|
||||
],
|
||||
'languageIdPalette' => [
|
||||
'showitem' => 'languageId',
|
||||
'isHiddenPalette' => true,
|
||||
],
|
||||
'locale-related' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.palette.locales',
|
||||
'showitem' => 'typo3Language, locale, iso-639-1'
|
||||
],
|
||||
'rendering-related' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.palette.frontend',
|
||||
'showitem' => 'navigationTitle, hreflang, direction, --linebreak--, fallbackType, --linebreak--, fallbacks'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'route',
|
||||
'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getRouteTitle',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.ctrl.title',
|
||||
'type' => 'type',
|
||||
'typeicon_column' => 'type',
|
||||
'typeicon_classes' => [
|
||||
'staticText' => 'mimetypes-text-html',
|
||||
'uri' => 'apps-pagetree-page-content-from-page',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'route' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.placeholder',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.example1', 'robots.txt'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'type' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.type',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'required' => true,
|
||||
'items' => [
|
||||
['', ''],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText', 'staticText'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source', 'uri']
|
||||
],
|
||||
],
|
||||
],
|
||||
'content' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'eval' => 'required',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText.example1', 'User-agent: *
|
||||
Disallow: /typo3/
|
||||
Disallow: /typo3_src/
|
||||
Allow: /typo3/sysext/frontend/Resources/Public/*
|
||||
'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'source' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'renderType' => 'inputLink',
|
||||
'eval' => 'required',
|
||||
'fieldControl' => [
|
||||
'linkPopup' => [
|
||||
'options' => [
|
||||
'blindLinkOptions' => 'mail,spec,folder',
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'route, type',
|
||||
],
|
||||
'staticText' => [
|
||||
'showitem' => 'route, type, content',
|
||||
],
|
||||
'uri' => [
|
||||
'showitem' => 'route, type, source',
|
||||
]
|
||||
],
|
||||
];
|
||||
Reference in new issue
Block a user