TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
<?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,
|
||||
'required' => true,
|
||||
// identifier is used as directory name - allow a-z,0-9,_,- as chars only.
|
||||
// unique is additionally checked server side
|
||||
'eval' => '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',
|
||||
'required' => true,
|
||||
'eval' => '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,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'websiteTitle' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.websiteTitle',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.websiteTitle',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
'default' => '',
|
||||
],
|
||||
],
|
||||
'dependencies' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.dependencies',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.dependencies',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectMultipleSideBySide',
|
||||
'itemsProcFunc' => \TYPO3\CMS\Core\Site\TcaSiteSetCollector::class . '->populateSiteSets',
|
||||
'size' => 5,
|
||||
'maxitems' => 9999,
|
||||
],
|
||||
],
|
||||
'languages' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages.description',
|
||||
'config' => [
|
||||
'type' => 'siteLanguage',
|
||||
],
|
||||
],
|
||||
'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,dependencies,
|
||||
--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, --linebreak--, websiteTitle',
|
||||
],
|
||||
'base' => [
|
||||
'showitem' => 'base, baseVariants',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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',
|
||||
'required' => true,
|
||||
'eval' => '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',
|
||||
'required' => true,
|
||||
'eval' => 'trim',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
[ 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.applicationContext', 'value' => 'applicationContext == "Production"'],
|
||||
[ 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.environmentVariable', 'value' => '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,151 @@
|
||||
<?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',
|
||||
'LoginRedirect' => 'content-elements-login',
|
||||
],
|
||||
],
|
||||
'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' => 'number',
|
||||
'required' => true,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 599,
|
||||
],
|
||||
'size' => 8,
|
||||
'default' => 404,
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.404', 'value' => '404'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.403', 'value' => '403'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.500', 'value' => '500'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.503', 'value' => '503'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.0', 'value' => '0'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'required' => true,
|
||||
'items' => [
|
||||
['label' => '', 'value' => ''],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.fluid', 'value' => 'Fluid'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.page', 'value' => 'Page'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.php', 'value' => 'PHP'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.loginRedirect', 'value' => 'LoginRedirect'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'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',
|
||||
'required' => true,
|
||||
'eval' => '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' => 'link',
|
||||
'required' => true,
|
||||
'allowedTypes' => ['page', 'url', 'record'],
|
||||
],
|
||||
],
|
||||
'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',
|
||||
'required' => true,
|
||||
'eval' => 'trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN.placeholder',
|
||||
],
|
||||
],
|
||||
'loginRedirectTarget' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.loginRedirectTarget',
|
||||
'config' => [
|
||||
'type' => 'link',
|
||||
'required' => true,
|
||||
'allowedTypes' => ['page'],
|
||||
],
|
||||
],
|
||||
'loginRedirectParameter' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.loginRedirectParameter',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'required' => true,
|
||||
'items' => [
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.loginRedirectParameter.return_url', 'value' => 'return_url'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.loginRedirectParameter.redirect_url', 'value' => 'redirect_url'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'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',
|
||||
],
|
||||
'LoginRedirect' => [
|
||||
'showitem' => '--palette--;;general, loginRedirectTarget, loginRedirectParameter',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'general' => [
|
||||
'showitem' => 'errorCode, errorHandler',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,183 @@
|
||||
<?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',
|
||||
'itemsProcFunc' => \TYPO3\CMS\Backend\Configuration\TCA\ItemsProcessorFunctions::class . '->populateAvailableLanguagesFromSites',
|
||||
],
|
||||
],
|
||||
'title' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 15,
|
||||
'required' => true,
|
||||
'eval' => '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',
|
||||
'required' => true,
|
||||
'eval' => 'trim',
|
||||
'size' => 15,
|
||||
'default' => '/',
|
||||
'placeholder' => '/',
|
||||
],
|
||||
],
|
||||
'websiteTitle' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.websiteTitle',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.websiteTitle',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
'default' => '',
|
||||
],
|
||||
],
|
||||
'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',
|
||||
'required' => true,
|
||||
'eval' => 'trim',
|
||||
'size' => 20,
|
||||
'placeholder' => 'en-US',
|
||||
'valuePicker' => [
|
||||
'items' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::getAllSystemLocales(),
|
||||
],
|
||||
],
|
||||
],
|
||||
'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,
|
||||
'default' => '',
|
||||
'placeholder' => 'en-US',
|
||||
],
|
||||
],
|
||||
'languageTag' => [
|
||||
'label' => 'Language Tag',
|
||||
'description' => 'IETF language tag, e.g. "en", "de", "de-CH"',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
'size' => 10,
|
||||
'max' => 35,
|
||||
'default' => '',
|
||||
],
|
||||
],
|
||||
'enabled' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 1,
|
||||
],
|
||||
],
|
||||
'flag' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.flag',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'itemGroups' => [
|
||||
'misc' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.flag.group.misc',
|
||||
'countries' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.flag.group.countries',
|
||||
'colors' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.flag.group.colors',
|
||||
],
|
||||
'itemsProcFunc' => \TYPO3\CMS\Backend\Configuration\TCA\ItemsProcessorFunctions::class . '->populateFlags',
|
||||
'items' => [
|
||||
['label' => 'default', 'value' => 'global', 'icon' => 'flags-multiple', 'group' => 'misc'],
|
||||
['label' => 'en-us-gb', 'value' => 'en-us-gb', 'icon' => 'flags-en-us-gb', 'group' => 'misc'],
|
||||
['label' => 'eu', 'value' => 'eu', 'icon' => 'flags-eu', 'group' => 'misc'],
|
||||
],
|
||||
'sortItems' => [
|
||||
'label' => 'asc',
|
||||
],
|
||||
'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' => [
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbackType.strict', 'value' => 'strict'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbackType.fallback', 'value' => 'fallback'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbackType.free', 'value' => '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',
|
||||
'itemsProcFunc' => \TYPO3\CMS\Backend\Configuration\TCA\ItemsProcessorFunctions::class . '->populateFallbackLanguages',
|
||||
'size' => 5,
|
||||
'min' => 0,
|
||||
],
|
||||
],
|
||||
'primary' => [
|
||||
'label' => 'Primary Language',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => '--palette--;;default, --palette--;;rendering-related, flag, --palette--;;languageIdPalette',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'default' => [
|
||||
'showitem' => 'title, enabled, --linebreak--, locale, hreflang, languageTag, --linebreak--, base',
|
||||
],
|
||||
'languageIdPalette' => [
|
||||
'showitem' => 'languageId, primary',
|
||||
'isHiddenPalette' => true,
|
||||
],
|
||||
'rendering-related' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.palette.frontend',
|
||||
'showitem' => 'websiteTitle, navigationTitle, --linebreak--, fallbackType, --linebreak--, fallbacks',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,99 @@
|
||||
<?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',
|
||||
'asset' => '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',
|
||||
'required' => true,
|
||||
'eval' => 'trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.placeholder',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.example1', 'value' => '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' => [
|
||||
['label' => '', 'value' => ''],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText', 'value' => 'staticText'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source', 'value' => 'uri'],
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.asset', 'value' => 'asset'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'content' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'required' => true,
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText.example1', 'value' => 'User-agent: *
|
||||
Disallow: /typo3/
|
||||
Disallow: /typo3_src/
|
||||
Disallow: /fileadmin/user_upload/_temp_/importexport
|
||||
# Uncomment the following line if you have a sitemap enabled. Replace the domain with your own.
|
||||
# Sitemap: https://www.example.org/sitemap.xml
|
||||
'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'source' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source',
|
||||
'config' => [
|
||||
'type' => 'link',
|
||||
'required' => true,
|
||||
'allowedTypes' => ['page', 'url', 'record', 'file'],
|
||||
],
|
||||
],
|
||||
'asset' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.asset',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
'required' => true,
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.asset.example', 'value' => 'EXT:backend/Resources/Public/Icons/favicon.ico'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'route, type',
|
||||
],
|
||||
'staticText' => [
|
||||
'showitem' => 'route, type, content',
|
||||
],
|
||||
'uri' => [
|
||||
'showitem' => 'route, type, source',
|
||||
],
|
||||
'asset' => [
|
||||
'showitem' => 'route, type, asset',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user