This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
59 lines (43 loc) · 1.86 KB
/
ext_localconf.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
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
# pi1 > plugin
t3lib_extMgm::addTypoScript($_EXTKEY,'editorcfg','
tt_content.CSS_editor.ch.tx_rggooglemap_pi1 = < plugin.tx_rggooglemap_pi1.CSS_editor
',43);
t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_rggooglemap_pi1.php','_pi1','list_type',0);
# pi2 > set up userdefined tag <MAP>
t3lib_extMgm::addTypoScript($_EXTKEY,'setup','
tt_content.text.20.parseFunc.tags.map = < plugin.'.t3lib_extMgm::getCN($_EXTKEY).'_pi2
',43);
t3lib_extMgm::addPItoST43($_EXTKEY,'pi2/class.tx_rggooglemap_pi2.php','_pi2','',1);
// add the service
t3lib_extMgm::addService($_EXTKEY, 'rggmData', 'tx_rggooglemap_sv1',
array(
'title' => 'tt_address for rggooglemap ',
'description' => 'Gets the needed data out of tt_address',
'subtype' => 'tt_address',
'available' => true,
'priority' => 50,
'quality' => 50,
'os' => '',
'exec' => '',
'classFile' => t3lib_extMgm::extPath($_EXTKEY).'sv1/class.tx_rggooglemap_sv1.php',
'className' => 'tx_rggooglemap_sv1',
)
);
// settings of extension manager
$confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['rggooglemap']);
// automatic lng+lat if activated
if ($confArr['autoGeocode'] == 1) {
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:rggooglemap/lib/class.tx_rggooglemap_tcemainprocdm.php:tx_rggooglemap_tcemainprocdm';
}
// hide category records in page module if not allowed in EM settings
if ($confArr['hideInPageModule']!=1) {
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_rggooglemap_cat'][0] = array(
'fList' => 'title,image,tabprefix',
'icon' => false
);
}
// linkhandler
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['rggm'] = 'EXT:rggooglemap/lib/class.tx_rggooglemap_linkhandler.php:&tx_rggooglemap_linkhandler';
?>