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_localconf.php
executable file
·27 lines (21 loc) · 1.73 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'piproducts/class.tx_amazonaffiliate_piproducts.php', '_piproducts', 'list_type', 1);
// Hooks for datamap procesing
// For processing the order sfe, when changing the pid
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:amazon_affiliate/hooks/class.tx_amazonaffiliate_dmhooks.php:tx_amazonaffiliate_dmhooks';
// implement the ASIN-evaluation function for TCE forms
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['tx_amazonaffiliate_asineval'] = 'EXT:amazon_affiliate/hooks/class.tx_amazonaffiliate_asineval.php';
// linkhandler hooks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['amazonaffiliate'] = 'EXT:amazon_affiliate/hooks/class.tx_amazonaffiliate_linkhandler.php:tx_amazonaffiliate_linkhandler';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.browse_links.php']['browseLinksHook'][] = 'EXT:amazon_affiliate/hooks/class.tx_amazonaffiliate_browselinkshook.php:tx_amazonaffiliate_browselinkshook';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php']['browseLinksHook'][] = 'EXT:amazon_affiliate/hooks/class.tx_amazonaffiliate_browselinkshook.php:tx_amazonaffiliate_browselinkshook';
// register the task for the scheduler
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_amazonaffiliate_updatestatus'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:'.$_EXTKEY.'/locallang.xml:CheckAsin.name', // task title
'description' => 'LLL:EXT:'.$_EXTKEY.'/locallang.xml:CheckAsin.description', // task description
);
?>