Repository navigation
Expand file tree
/
Copy pathext_localconf.php
More file actions
70 lines (61 loc) · 3.39 KB
/
Copy pathext_localconf.php
File metadata and controls
70 lines (61 loc) · 3.39 KB
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
<?php
/*
* This file is part of the package thucke/th-rating.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
/***************
* Register "thr" as global fluid namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['thr'][] = 'Thucke\\ThRating\\ViewHelpers';
/***************
* Register "thr" as global fluid namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['thr'][] = 'Thucke\\ThRating\\ViewHelpers';
/**
* Configure the Plugin to call the
* right combination of Controller and Action according to
* the user input (default settings, FlexForm, URL etc.)
* @deprecated old controller registration will be removed in when support for TYPO3 v9 is dropped
*/
//TODO remove second registration entry when TYPO3v9 compatibility is dropped
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Thucke.ThRating', // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
'Pi1', // A unique name of the plugin in UpperCamelCase
[ // An array holding the controller-action-combinations that are accessible
// The first controller and its first action will be the default
'Vote' => 'ratinglinks,polling,mark,index,show,create,new,singleton',
\Thucke\ThRating\Controller\VoteController::class => 'ratinglinks,polling,mark,index,show,create,new,singleton',
],
[ // An array of non-cachable controller-action-combinations (they must already be enabled)
'Vote' => 'new,create,ratinglinks,polling,mark',
\Thucke\ThRating\Controller\VoteController::class => 'new,create,ratinglinks,polling,mark',
]
);
// here we register "DynamicCssEvaluator" to remove the dynamic CSS file when values are modified in the BE
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['Thucke\ThRating\Evaluation\DynamicCssEvaluator'] = '';
//add hook to remove the dynamic CSS file when cache is cleared
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] =
\Thucke\ThRating\Evaluation\DynamicCssEvaluator::class . '->clearCachePostProc';
/**
* Base configuration of logging events.
* Each loglevel could be swichted off using typoscript setting
*/
/*$GLOBALS['TYPO3_CONF_VARS']['LOG']['Thucke']['ThRating']['writerConfiguration'] = array(
\TYPO3\CMS\Core\Log\LogLevel::EMERGENCY => array(),
\TYPO3\CMS\Core\Log\LogLevel::ALERT => array(),
\TYPO3\CMS\Core\Log\LogLevel::CRITICAL => array(),
\TYPO3\CMS\Core\Log\LogLevel::ERROR => array(),
\TYPO3\CMS\Core\Log\LogLevel::WARNING => array(),
\TYPO3\CMS\Core\Log\LogLevel::NOTICE => array(),
\TYPO3\CMS\Core\Log\LogLevel::INFO => array(),
\TYPO3\CMS\Core\Log\LogLevel::DEBUG => array(),
);*/
// Example for using signals of this extension:
//$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
//$signalSlotDispatcher->connect('Thucke\\ThRating\\Controller\\VoteController', 'afterRatinglinkAction', 'Thucke\\ThRating\\Controller\\VoteController', 'afterRatinglinkActionHandler',false);
//$signalSlotDispatcher->connect('Thucke\\ThRating\\Controller\\VoteController', 'afterCreateAction', 'Thucke\\ThRating\\Controller\\VoteController', 'afterCreateActionHandler',false);