[!!!][TASK] Move pages.url_scheme to compatibility7
[Packages/TYPO3.CMS.git] / typo3 / sysext / compatibility7 / Configuration / TCA / Overrides / pages.php
1 <?php
2
3 defined('TYPO3_MODE') or die();
4
5 // add pages.url_scheme
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', [
7 'url_scheme' => [
8 'exclude' => true,
9 'label' => 'LLL:EXT:compatibility7/Resources/Private/Language/locallang_tca.xlf:pages.url_scheme',
10 'config' => [
11 'type' => 'select',
12 'renderType' => 'selectSingle',
13 'items' => [
14 [
15 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value',
16 0
17 ],
18 [
19 'LLL:EXT:compatibility7/Resources/Private/Language/locallang_tca.xlf:pages.url_scheme.http',
20 1
21 ],
22 [
23 'LLL:EXT:compatibility7/Resources/Private/Language/locallang_tca.xlf:pages.url_scheme.https',
24 2
25 ]
26 ],
27 'default' => 0
28 ]
29 ]
30 ]);
31
32 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 3, 'url_scheme', 'after:cache_tags');
33 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 'links', '--linebreak--, url_scheme;LLL:EXT:compatibility7/Resources/Private/Language/locallang_tca.xlf:pages.url_scheme_formlabel', 'after:target');