This repository was archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
46 lines (43 loc) · 1.53 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
// add new columns to table 'pages'
$tempColumns = array(
'tx_extracache_cleanerstrategies' => array(
'exclude' => 1,
'label' => 'LLL:EXT:extracache/Resources/Private/Language/locallang_db.xml:pages.tx_extracache_cleanerstrategies',
'config' => array (
'type' => 'select',
'size' => 10,
'minitems' => 0,
'maxitems' => 10,
'multiple' => FALSE,
'items' => array(),
'itemsProcFunc' => 'tx_Extracache_Typo3_UserFunc_CleanerStrategy->getCleanerStrategyItemsProcFunc',
)
),
'tx_extracache_events' => array(
'exclude' => 1,
'label' => 'LLL:EXT:extracache/Resources/Private/Language/locallang_db.xml:pages.tx_extracache_events',
'config' => array (
'type' => 'select',
'size' => 10,
'minitems' => 0,
'maxitems' => 10,
'multiple' => FALSE,
'items' => array(),
'itemsProcFunc' => 'tx_Extracache_Typo3_UserFunc_Event->getEventItemsProcFunc',
)
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages',$tempColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages','--div--;Cache,tx_extracache_cleanerstrategies,tx_extracache_events,tx_ncstaticfilecache_cache');
if (TYPO3_MODE == 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_info',
'tx_extracache_modfunc1',
NULL,
'LLL:EXT:extracache/Resources/Private/Language/locallang_db.xml:moduleFunction.tx_extracache_modfunc1'
);
}