[TASK] Unify backend: header/section
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 t3lib_extMgm::addPlugin(Array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
5
6 t3lib_div::loadTCA('tt_content');
7 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY] = 'layout,select_key,pages';
8
9 // Registers the Extbase plugin to be listed in the Backend.
10 if (t3lib_extMgm::isLoaded('extbase')) {
11 $extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
12 Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi2',
13 // the title shown in the backend dropdown field
14 'Indexed Search (experimental)'
15 );
16 $pluginSignature = strtolower($extensionName) . '_pi2';
17 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive';
18 }
19
20 if (TYPO3_MODE=='BE') {
21 t3lib_extMgm::addModule('tools','isearch','after:log',t3lib_extMgm::extPath($_EXTKEY).'mod/');
22
23 t3lib_extMgm::insertModuleFunction(
24 'web_info',
25 'tx_indexedsearch_modfunc1',
26 t3lib_extMgm::extPath($_EXTKEY).'modfunc1/class.tx_indexedsearch_modfunc1.php',
27 'LLL:EXT:indexed_search/locallang.php:mod_indexed_search'
28 );
29 t3lib_extMgm::insertModuleFunction(
30 "web_info",
31 "tx_indexedsearch_modfunc2",
32 t3lib_extMgm::extPath($_EXTKEY)."modfunc2/class.tx_indexedsearch_modfunc2.php",
33 "LLL:EXT:indexed_search/locallang.php:mod2_indexed_search"
34 );
35 }
36
37 t3lib_extMgm::allowTableOnStandardPages('index_config');
38 t3lib_extMgm::addLLrefForTCAdescr('index_config','EXT:indexed_search/locallang_csh_indexcfg.xml');
39
40 if (t3lib_extMgm::isLoaded('crawler')) {
41 $TCA['index_config'] = Array (
42 'ctrl' => Array (
43 'title' => 'LLL:EXT:indexed_search/locallang_db.php:index_config',
44 'label' => 'title',
45 'tstamp' => 'tstamp',
46 'crdate' => 'crdate',
47 'cruser_id' => 'cruser_id',
48 'type' => 'type',
49 'default_sortby' => 'ORDER BY crdate',
50 'enablecolumns' => Array (
51 'disabled' => 'hidden',
52 'starttime' => 'starttime',
53 ),
54 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
55 'iconfile' => 'default.gif',
56 ),
57 'feInterface' => Array (
58 'fe_admin_fieldList' => 'hidden, starttime, title, description, type, depth, table2index, alternative_source_pid, get_params, chashcalc, filepath, extensions',
59 )
60 );
61 }
62
63
64 // Example of crawlerhook (see also ext_localconf.php!)
65 /*
66 t3lib_div::loadTCA('index_config');
67 $TCA['index_config']['columns']['type']['config']['items'][] = Array('My Crawler hook!', 'tx_myext_example1');
68 $TCA['index_config']['types']['tx_myext_example1'] = $TCA['index_config']['types']['0'];
69 */
70
71 ?>