-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
77 lines (72 loc) · 2.33 KB
/
ext_tables.php
File metadata and controls
77 lines (72 loc) · 2.33 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$TCA['tx_pathfinder_domain_model_cache'] = array(
'ctrl' => array(
'title' => 'URL Path' ,
'label' => 'path' ,
'searchFields' => 'path' ,
'hideAtCopy' => TRUE ,
'delete' => 'deleted' ,
'enablecolumns' => array(
'disabled' => 'hidden' ,
'starttime' => 'starttime' ,
'endtime' => 'endtime' ,
'hidden' => 'hidden'
) ,
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/cache.png' ,
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Cache.php'
)
);
$TCA['tx_pathfinder_domain_model_cachehistory'] = array(
'ctrl' => array(
'title' => 'URL History Paths' ,
'label' => 'path' ,
'searchFields' => 'path' ,
'hideAtCopy' => TRUE ,
'delete' => 'deleted' ,
'enablecolumns' => array(
'disabled' => 'hidden' ,
'starttime' => 'starttime' ,
'endtime' => 'endtime' ,
'hidden' => 'hidden'
) ,
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/cachehistory.png' ,
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/CacheHistory.php'
)
);
t3lib_extMgm::allowTableOnStandardPages('tx_pathfinder_domain_model_cachehistory');
t3lib_extMgm::allowTableOnStandardPages('tx_pathfinder_domain_model_cache');
if (TYPO3_MODE === 'BE') {
Tx_Extbase_Utility_Extension::registerModule(
$_EXTKEY ,
'tools' , // submodule
'pathfinder' , // key
'' , // position
array(
'Backend' => 'index,missing,clearMissing'
) ,
array(
'access' => 'user,group' ,
'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.png' ,
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml' ,
)
);
}
t3lib_div::loadTCA('pages');
t3lib_extMgm::addTCAcolumns('pages' , array(
'tx_pathfinder_exclude' => array(
'exclude' => 0 ,
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:excludepath' ,
'config' => array(
'type' => 'check' ,
'items' => array(
'1' => array(
'0' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:exclude'
) ,
) ,
)
)
) , 1);
t3lib_extMgm::addFieldsToPalette('pages' , 'miscellaneous' , 'tx_pathfinder_exclude' , 'after:no_search');