-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathext_tables.php
25 lines (20 loc) · 1.16 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
defined('TYPO3') or die();
if ((\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class))->getMajorVersion() < 12) {
// $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig'] is used for v13
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
# Disable adding new sys_template records in list module
mod.web_list.deniedNewTables := addToList(sys_template)
# Hide tstemplate "Info/Modify" and "Constant Editor" in core v11
mod.web_ts.menu.function.TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController = 0
mod.web_ts.menu.function.TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController = 0
# Hide TSconfig and tsconfig_includes fields when editing pages
TCEFORM.pages.TSconfig.disabled=1
TCEFORM.pages.tsconfig_includes.disabled=1
');
// Configuration/user.tsconfig is used for v13
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
# Hide tstemplate "Edit TypoScript record" and "Constant Editor" in core v12
options.hideModules := addToList(web_typoscript_infomodify, web_typoscript_constanteditor)
');
};