TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
$GLOBALS['TCA']['be_groups']['columns']['hidden']['authenticationContext']['group'] = 'be.userManagement';
|
||||
$GLOBALS['TCA']['be_groups']['columns']['hidden']['label'] = 'core.db.accounts:group.enabled';
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
// New be_users are disabled by default and can not disable themselves
|
||||
$GLOBALS['TCA']['be_users']['columns']['disable']['displayCond'] = 'USER:' . \TYPO3\CMS\Core\Hooks\TcaDisplayConditions::class . '->isRecordCurrentUser:false';
|
||||
$GLOBALS['TCA']['be_users']['columns']['disable']['config']['default'] = 1;
|
||||
|
||||
$GLOBALS['TCA']['be_users']['columns']['disable']['authenticationContext']['group'] = 'be.userManagement';
|
||||
$GLOBALS['TCA']['be_users']['columns']['disable']['label'] = 'core.db.accounts:enabled';
|
||||
$GLOBALS['TCA']['be_users']['columns']['starttime']['authenticationContext']['group'] = 'be.userManagement';
|
||||
$GLOBALS['TCA']['be_users']['columns']['starttime']['label'] = 'core.db.accounts:starttime';
|
||||
$GLOBALS['TCA']['be_users']['columns']['endtime']['authenticationContext']['group'] = 'be.userManagement';
|
||||
$GLOBALS['TCA']['be_users']['columns']['endtime']['label'] = 'core.db.accounts:endtime';
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('seo')) {
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 'metatags', '--linebreak--, description', 'after:keywords');
|
||||
}
|
||||
|
||||
// New pages are disabled by default
|
||||
$GLOBALS['TCA']['pages']['columns']['hidden']['config']['default'] = 1;
|
||||
|
||||
// @todo: It's unclear if different start/end times for page localizations actually work throughout the system.
|
||||
$GLOBALS['TCA']['pages']['columns']['starttime']['config']['behaviour']['allowLanguageSynchronization'] = true;
|
||||
$GLOBALS['TCA']['pages']['columns']['endtime']['config']['behaviour']['allowLanguageSynchronization'] = true;
|
||||
|
||||
// 'editlock' has l10n_mode=exclude, note 'tt_content' does not have this ...
|
||||
$GLOBALS['TCA']['pages']['columns']['editlock']['l10n_mode'] = 'exclude';
|
||||
|
||||
// 'sys_language_uid' has exclude=true by default, unset this for pages
|
||||
unset($GLOBALS['TCA']['pages']['columns']['sys_language_uid']['exclude']);
|
||||
|
||||
// transOrigPointerField needs an adaptions on pages table, deviating from default:
|
||||
// sys_language_uid = -1 is not allowed.
|
||||
$GLOBALS['TCA']['pages']['columns']['l10n_parent']['config']['foreign_table_where'] = 'AND {#pages}.{#uid}=###CURRENT_PID### AND {#pages}.{#sys_language_uid} = 0';
|
||||
|
||||
// Add language_tag to the language palette
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette(
|
||||
'pages',
|
||||
'language',
|
||||
'--linebreak--, language_tag',
|
||||
'after:l18n_cfg'
|
||||
);
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
// @todo: Review. It is unclear if start/end time restrictions different from default-lang actually work if FE.
|
||||
$GLOBALS['TCA']['sys_category']['columns']['starttime']['config']['behaviour']['allowLanguageSynchronization'] = true;
|
||||
$GLOBALS['TCA']['sys_category']['columns']['endtime']['config']['behaviour']['allowLanguageSynchronization'] = true;
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
// 'sys_language_uid' is part of a hidden palette, there is no access rights configuration for it.
|
||||
unset($GLOBALS['TCA']['sys_file_metadata']['columns']['sys_language_uid']['exclude']);
|
||||
|
||||
// @todo: transOrigPointerField is configured differently. Needed? Possible to keep default?
|
||||
$GLOBALS['TCA']['sys_file_metadata']['columns']['l10n_parent']['config'] = [
|
||||
'type' => 'group',
|
||||
'allowed' => 'sys_file_metadata',
|
||||
'size' => 1,
|
||||
'relationship' => 'manyToOne',
|
||||
'default' => 0,
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
// 'sys_language_uid' is part of a hidden palette, there is no access rights configuration for it.
|
||||
unset($GLOBALS['TCA']['sys_file_reference']['columns']['sys_language_uid']['exclude']);
|
||||
|
||||
// @todo: transOrigPointerField is configured differently. Needed? Possible to keep default?
|
||||
$GLOBALS['TCA']['sys_file_reference']['columns']['l10n_parent']['config'] = [
|
||||
'type' => 'group',
|
||||
'allowed' => 'sys_file_reference',
|
||||
'size' => 1,
|
||||
'relationship' => 'manyToOne',
|
||||
'default' => 0,
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class)->addDriversToTCA();
|
||||
Reference in New Issue
Block a user