forked from astehlik/typo3-extension-tinyurls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
27 lines (21 loc) · 1.06 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.');
}
// Register the eID processor.
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_tinyurls'] =
\Tx\Tinyurls\Controller\EidController::class . '::tinyUrlRedirect';
// Register the hook for converting typolinks to tinyurls.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc']['tx_tinyurls'] =
\Tx\Tinyurls\Hooks\TypoLink::class . '->convertTypolinkToTinyUrl';
// Register the TYPO3 Backend hook class.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
Tx\Tinyurls\Hooks\TceDataMap::class;
// Modify the rendering of the list module.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list.inc']['makeQueryArray']['tx_tinyurls'] =
\Tx\Tinyurls\Hooks\DatabaseRecordList::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1460107841] = [
'nodeName' => 'tx_tinyurls_copyable_field',
'priority' => 40,
'class' => \Tx\Tinyurls\FormEngine\CopyableFieldElement::class,
];