forked from TYPO3-extensions/nc_staticfilecache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
30 lines (25 loc) · 904 Bytes
/
ext_tables.php
File metadata and controls
30 lines (25 loc) · 904 Bytes
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
26
27
28
29
30
<?php
/**
* Extension backend registration
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tmp = [
'tx_ncstaticfilecache_cache' => [
'exclude' => 0,
'label' => 'LLL:EXT:nc_staticfilecache/Resources/Private/Language/locallang.xml:nc_staticfilecache.field',
'config' => [
'type' => 'check',
'default' => '1',
],
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tmp);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_ncstaticfilecache_cache;;;;1-1-1');
if (TYPO3_MODE == 'BE') {
// Add Web>Info module:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info',
\SFC\NcStaticfilecache\Module\CacheModule::class, null,
'LLL:EXT:nc_staticfilecache/Resources/Private/Language/locallang.xml:module.title');
}