-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
88 lines (79 loc) · 2.96 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
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
78
79
80
81
82
83
84
85
86
87
88
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
if (TYPO3_MODE === 'BE') {
/**
* Registers a Backend Module
*/
Tx_Extbase_Utility_Extension::registerModule(
$_EXTKEY, // Extension-Key
'tools', // Make module a submodule of 'tools'
'solrpanel', // Submodule key
'', // Position
array(
'Indexerrors' => 'index',
'Comparison' => 'index',
'Querylog' => 'index'
),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_solrpanel.xml',
)
);
}
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'SolrPanel');
t3lib_extMgm::addLLrefForTCAdescr('tx_solrpanel_domain_model_indexerrors', 'EXT:solrpanel/Resources/Private/Language/locallang_csh_tx_solrpanel_domain_model_indexerros.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_solrpanel_domain_model_indexerrors');
$TCA['tx_solrpanel_domain_model_indexerrors'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:solrpanel/Resources/Private/Language/locallang_db.xml:tx_solrpanel_domain_model_indexerrors',
'label' => 'company',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Indexerrors.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_solrpanel_domain_model_indexerrors.gif'
),
);
t3lib_extMgm::addLLrefForTCAdescr('tx_solrpanel_domain_model_querylogdata', 'EXT:solrpanel/Resources/Private/Language/locallang_csh_tx_solrpanel_domain_model_querylogdata.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_solrpanel_domain_model_querylogdata');
$TCA['tx_solrpanel_domain_model_querylogdata'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:solrpanel/Resources/Private/Language/locallang_db.xml:tx_solrpanel_domain_model_querylogdata',
'label' => 'company',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Querylogdata.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_solrpanel_domain_model_querylogdata.gif'
),
);
?>