-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_localconf.php
30 lines (27 loc) · 1.41 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
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(static function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'yellowpages2',
'Directory',
[
\JWeiland\Yellowpages2\Controller\CompanyController::class => 'list, listMyCompanies, show, search, new, create, edit, update, activate',
\JWeiland\Yellowpages2\Controller\MapController::class => 'new, create, edit, update, activate',
],
// non-cacheable actions
[
\JWeiland\Yellowpages2\Controller\CompanyController::class => 'search, create, update, activate',
\JWeiland\Yellowpages2\Controller\MapController::class => 'create, update',
]
);
// Clear cache of pages with yellowpages plugins, if a company record was edited/created/deleted in BE
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['yellowpages2_clearcache']
= \JWeiland\Yellowpages2\Hook\ClearCacheHook::class . '->clearCachePostProc';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][JWeiland\Yellowpages2\Tasks\Update::class] = [
'extension' => 'yellowpages2',
'title' => 'Inform users to update their company record',
'description' => 'Hide company records which are older than 13 month and inform users to update their company record after 12 month.',
];
});